Skip to content

Commit d435657

Browse files
Update code.py
1 parent 2f8e528 commit d435657

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PyGamer_Thermal_Camera/code.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)