Skip to content

Commit

Permalink
change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
veloxidSchweiz authored and veloxid committed Nov 29, 2020
1 parent 5d79d02 commit 8229af3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/gpio_control/GPIODevices/two_button_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ def functionCallTwoButtons(btn1, btn2, functionCall1, functionCall2, functionCal
def functionCallTwoButtons(*args):
btn1_pressed = btn1.is_pressed
btn2_pressed = btn2.is_pressed
<<<<<<< HEAD
logger.debug('Btn1 {}, Btn2 {}'.format(btn1_pressed, btn2_pressed))
=======
logger.info('Btn1 {}, Btn2 {}'.format(btn1_pressed,btn2_pressed))
>>>>>>> ba90f99... change logging
if btn1_pressed and btn2_pressed:
logger.debug("Both buttons was pressed")
if functionCallBothPressed is not None:
Expand Down

0 comments on commit 8229af3

Please sign in to comment.