File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -374,14 +374,15 @@ def move_buttons(joystick=False): # Read position buttons and joystick
374
374
panel .play_tone (1319 , 0.030 ) # E6
375
375
while panel .button .a :
376
376
pass # wait for button release
377
- if display_hold == False :
377
+ if not display_hold :
378
378
display_hold = True
379
379
else :
380
380
display_hold = False
381
381
382
382
if panel .button .b : # Toggle image/histogram mode (display mode = button B)
383
383
panel .play_tone (659 , 0.030 ) # E5
384
- while panel .button .b : pass # wait for button release
384
+ while panel .button .b :
385
+ pass # wait for button release
385
386
if display_image :
386
387
display_image = False
387
388
else :
@@ -420,4 +421,4 @@ def move_buttons(joystick=False): # Read position buttons and joystick
420
421
MIN_RANGE_C = fahrenheit_to_celsius (MIN_RANGE_F )
421
422
MAX_RANGE_C = fahrenheit_to_celsius (MAX_RANGE_F )
422
423
423
- pass # bottom of primary loop
424
+ # bottom of primary loop
You can’t perform that action at this time.
0 commit comments