diff options
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index f31ab33c87..5e6f6b4827 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c | |||
@@ -845,6 +845,7 @@ static int button_read(void) | |||
845 | static int prev_data = 0xff; | 845 | static int prev_data = 0xff; |
846 | static int last_valid = 0xff; | 846 | static int last_valid = 0xff; |
847 | bool hold_button_old; | 847 | bool hold_button_old; |
848 | bool remote_hold_button_old; | ||
848 | 849 | ||
849 | /* normal buttons */ | 850 | /* normal buttons */ |
850 | hold_button_old = hold_button; | 851 | hold_button_old = hold_button; |
@@ -916,12 +917,13 @@ static int button_read(void) | |||
916 | } | 917 | } |
917 | 918 | ||
918 | /* remote buttons */ | 919 | /* remote buttons */ |
920 | remote_hold_button_old = remote_hold_button; | ||
919 | remote_hold_button = remote_button_hold_only(); | 921 | remote_hold_button = remote_button_hold_only(); |
920 | 922 | ||
921 | if (remote_hold_button && !remote_button_hold_only()) | 923 | #ifndef BOOTLOADER |
922 | { | 924 | if (remote_hold_button != remote_hold_button_old) |
923 | remote_backlight_on(); | 925 | remote_backlight_hold_changed(remote_hold_button); |
924 | } | 926 | #endif |
925 | 927 | ||
926 | if (!remote_hold_button) | 928 | if (!remote_hold_button) |
927 | { | 929 | { |