From 51ad6254048c85284a287ade1a602e3432209b77 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 29 Mar 2020 12:42:16 -0400 Subject: FS#13186: IAP: Send periodic updates in mode 4 (Stefan Ott) Devices in IAP mode 4 do not explicitly request specific notifications, thus they don't get *any* periodic notifications at the moment (in particular, they miss the track position updates that are supposed to be sent out every 500 ms). The attached patch fixes this by skipping an early return for devices in IST_EXTENDED state. Change-Id: I23e35247dd0494e537429d4fd9d51dc7f4653d76 --- apps/iap/iap-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/iap/iap-core.c') diff --git a/apps/iap/iap-core.c b/apps/iap/iap-core.c index 653396ae6a..f8373bab83 100644 --- a/apps/iap/iap-core.c +++ b/apps/iap/iap-core.c @@ -855,7 +855,7 @@ void iap_periodic(void) } if (!device.do_notify) return; - if (device.notifications == 0) return; + if ((device.notifications == 0) && (interface_state != IST_EXTENDED)) return; /* Volume change notifications are sent every 100ms */ if (device.notifications & (BIT_N(4) | BIT_N(16))) { -- cgit v1.2.3