We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49df829 commit 16b596fCopy full SHA for 16b596f
main/src/user/key_handle.c
@@ -53,6 +53,14 @@ void sleep_key_handle(void)
53
}
54
#endif
55
56
- os_power_sleep_wait(BT_SPP_IDLE_BIT | BT_A2DP_IDLE_BIT | BLE_GATTS_IDLE_BIT | AUDIO_PLAYER_IDLE_BIT);
+ os_power_sleep_wait(
57
+ BT_SPP_IDLE_BIT | BT_A2DP_IDLE_BIT
58
+#ifdef CONFIG_ENABLE_BLE_CONTROL_IF
59
+ | BLE_GATTS_IDLE_BIT
60
+#endif
61
+#ifdef CONFIG_ENABLE_AUDIO_PROMPT
62
+ | AUDIO_PLAYER_IDLE_BIT
63
64
+ );
65
66
#endif // CONFIG_ENABLE_SLEEP_KEY
0 commit comments