summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 83e42cf..b57e84e 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
case SYS_VOLUME_CHANGED:
{
static bool firstvolume = true;
- int volume = hosted_get_volume();
+ /* kludge: since this events go to the button_queue,
+ * event data is available in the last button data */
+ int volume = button_get_data();
DEBUGF("SYS_VOLUME_CHANGED: %d\n", volume);
if (global_settings.volume != volume) {
global_settings.volume = volume;