diff options
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index 83e42cf3e0..b57e84efb3 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -622,7 +622,9 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame | |||
622 | case SYS_VOLUME_CHANGED: | 622 | case SYS_VOLUME_CHANGED: |
623 | { | 623 | { |
624 | static bool firstvolume = true; | 624 | static bool firstvolume = true; |
625 | int volume = hosted_get_volume(); | 625 | /* kludge: since this events go to the button_queue, |
626 | * event data is available in the last button data */ | ||
627 | int volume = button_get_data(); | ||
626 | DEBUGF("SYS_VOLUME_CHANGED: %d\n", volume); | 628 | DEBUGF("SYS_VOLUME_CHANGED: %d\n", volume); |
627 | if (global_settings.volume != volume) { | 629 | if (global_settings.volume != volume) { |
628 | global_settings.volume = volume; | 630 | global_settings.volume = volume; |