diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-05-30 12:26:19 -0400 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2024-06-02 17:09:24 -0400 |
commit | 82dcf327365d0c494e51a9a07f5c8b543188c065 (patch) | |
tree | 1ef0e335464977a0a40fd0ad74bb4b3938601f13 /firmware/target/hosted/sdl/button-sdl.c | |
parent | 31ae252dcc75083edd4c8bf9665601395aae977b (diff) | |
download | rockbox-82dcf327365d0c494e51a9a07f5c8b543188c065.tar.gz rockbox-82dcf327365d0c494e51a9a07f5c8b543188c065.zip |
[BugFix] headphone should be removed on first toggle
Change-Id: I10a77f210896a9ec317f9cbc7de21dccabafe426
Diffstat (limited to 'firmware/target/hosted/sdl/button-sdl.c')
-rw-r--r-- | firmware/target/hosted/sdl/button-sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/button-sdl.c b/firmware/target/hosted/sdl/button-sdl.c index ccfb557014..1055d7e0b9 100644 --- a/firmware/target/hosted/sdl/button-sdl.c +++ b/firmware/target/hosted/sdl/button-sdl.c | |||
@@ -324,7 +324,7 @@ static void button_event(int key, bool pressed) | |||
324 | case SDLK_p: | 324 | case SDLK_p: |
325 | if (!pressed) | 325 | if (!pressed) |
326 | { | 326 | { |
327 | static bool hp_connected = false; | 327 | static bool hp_connected = true; |
328 | hp_connected = !hp_connected; | 328 | hp_connected = !hp_connected; |
329 | sim_trigger_hp(hp_connected); | 329 | sim_trigger_hp(hp_connected); |
330 | } | 330 | } |