Skip to content

Commit d5ce3c2

Browse files
committed
Fix refactor bug
1 parent 97855d6 commit d5ce3c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

machine_controller/vend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ def __vend(self, letter, number):
150150
if binary & 0b001:
151151
GPIO.output(self.ROW[2], GPIO.HIGH)
152152

153-
GPIO.output(self.ROW[0], GPIO.HIGH)
154-
GPIO.output(self.ROW[1], GPIO.HIGH)
153+
GPIO.output(self.COL[0], GPIO.HIGH)
154+
GPIO.output(self.COL[1], GPIO.HIGH)
155155

156156
self.__commit()
157157

@@ -163,9 +163,9 @@ def __vend(self, letter, number):
163163
print("Vending", row, col)
164164

165165
if col & 0b01:
166-
GPIO.output(self.ROW[1], GPIO.HIGH)
166+
GPIO.output(self.COL[1], GPIO.HIGH)
167167
if col & 0b10:
168-
GPIO.output(self.ROW[0], GPIO.HIGH)
168+
GPIO.output(self.COL[0], GPIO.HIGH)
169169

170170
if row & 0x100:
171171
GPIO.output(self.ROW[0], GPIO.HIGH)

0 commit comments

Comments
 (0)