File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -374,14 +374,15 @@ def move_buttons(joystick=False): # Read position buttons and joystick
374374 panel .play_tone (1319 , 0.030 ) # E6
375375 while panel .button .a :
376376 pass # wait for button release
377- if display_hold == False :
377+ if not display_hold :
378378 display_hold = True
379379 else :
380380 display_hold = False
381381
382382 if panel .button .b : # Toggle image/histogram mode (display mode = button B)
383383 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
385386 if display_image :
386387 display_image = False
387388 else :
@@ -420,4 +421,4 @@ def move_buttons(joystick=False): # Read position buttons and joystick
420421 MIN_RANGE_C = fahrenheit_to_celsius (MIN_RANGE_F )
421422 MAX_RANGE_C = fahrenheit_to_celsius (MAX_RANGE_F )
422423
423- pass # bottom of primary loop
424+ # bottom of primary loop
You can’t perform that action at this time.
0 commit comments