From 17114f722a6da1c669d38ca05cea951be9a960f4 Mon Sep 17 00:00:00 2001 From: Jan Almeroth Date: Sat, 23 Nov 2024 15:10:54 +0100 Subject: [PATCH] chore: comment on sleep --- src/utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils.c b/src/utils.c index 48b0662..1f51e1b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -15,6 +15,7 @@ * along with this program. If not, see . */ +#include "device/usbd.h" #include "main.h" /**================================================== * @@ -62,6 +63,8 @@ void kick_watchdog_task(device_t *state) { void remote_wakeup(void) { tud_remote_wakeup(); if (global_state.device_config[BOARD_ROLE].os == MACOS) { + // workaround: so we can get another round of sleep + // macOS will not allow to suspend otherwise request_reboot(); } }