Skip to content

Commit dbfacc9

Browse files
committed
Linted via pylint
1 parent 2a2df34 commit dbfacc9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PyBadge_Conference_Badge/code.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ def rotate(degrees):
155155
last_read = time.monotonic()
156156
if latest_event.pressed and latest_event.key_number != last_event.key_number:
157157
# Respond to the buttons
158-
if (latest_event.key_number == BUTTON_RIGHT):
158+
if latest_event.key_number == BUTTON_RIGHT:
159159
direction = -1
160-
elif (latest_event.key_number == BUTTON_LEFT):
160+
elif latest_event.key_number == BUTTON_LEFT:
161161
direction = 1
162162
elif (latest_event.key_number == BUTTON_UP) and speed < 10:
163163
speed += 1
@@ -168,4 +168,5 @@ def rotate(degrees):
168168
elif (latest_event.key_number == BUTTON_B) and brightness > 0.025:
169169
brightness -= 0.025
170170
last_event = latest_event
171-
latest_event = Event(key_number=8) # An imaginary key number that doesn't exist!
171+
latest_event = Event(key_number=8) # An imaginary key number that doesn't exist!
172+

0 commit comments

Comments
 (0)