This commit is contained in:
lmx
2025-11-28 09:33:33 +08:00
parent 09f8e06e09
commit b28f1aade7
2 changed files with 26 additions and 13 deletions

View File

@ -2476,17 +2476,17 @@ static int event_handler(struct application *app, struct sys_event *event)
return app_power_event_handler(&event->u.dev);
}
#if (JL_EARPHONE_APP_EN)
else if ((u32)event->arg == DEVICE_EVENT_FROM_RCSP) {
log_info("DEVICE_EVENT_FROM_RCSP: %d", event->u.rcsp.event);
switch (event->u.rcsp.event) {
case MSG_JL_UPDATE_START:
log_info(">>> EARPHONE APP: MSG_JL_UPDATE_START\n");
// You can add UI notifications here, like LED blinking or a tone.
break;
default:
break;
}
}
// else if ((u32)event->arg == DEVICE_EVENT_FROM_RCSP) {
// log_info("DEVICE_EVENT_FROM_RCSP: %d", event->u.rcsp.event);
// switch (event->u.rcsp.event) {
// case MSG_JL_UPDATE_START:
// log_info(">>> EARPHONE APP: MSG_JL_UPDATE_START\n");
// // You can add UI notifications here, like LED blinking or a tone.
// break;
// default:
// break;
// }
// }
#endif
#if TCFG_CHARGESTORE_ENABLE
else if ((u32)event->arg == DEVICE_EVENT_CHARGE_STORE) {