1
0
Fork 0
forked from len0rd/rockbox

[BugFix] headphone should be removed on first toggle

Change-Id: I10a77f210896a9ec317f9cbc7de21dccabafe426
This commit is contained in:
William Wilgus 2024-05-30 12:26:19 -04:00 committed by William Wilgus
parent 31ae252dcc
commit 82dcf32736

View file

@ -324,7 +324,7 @@ static void button_event(int key, bool pressed)
case SDLK_p: case SDLK_p:
if (!pressed) if (!pressed)
{ {
static bool hp_connected = false; static bool hp_connected = true;
hp_connected = !hp_connected; hp_connected = !hp_connected;
sim_trigger_hp(hp_connected); sim_trigger_hp(hp_connected);
} }