mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 11:36:59 +03:00
Tweak A1S to make it work with devkit + correct one minor bug in buttons - release
This commit is contained in:
@@ -116,7 +116,8 @@ static void jack_handler_default(void *id, button_event_e event, button_press_e
|
||||
*
|
||||
*/
|
||||
bool jack_inserted_svc (void) {
|
||||
return button_is_pressed(jack.gpio, NULL);
|
||||
if (jack.gpio != -1) return button_is_pressed(jack.gpio, NULL);
|
||||
else return true;
|
||||
}
|
||||
|
||||
/****************************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user