Skip to content

Commit

Permalink
chore: comment on sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
jalmeroth committed Nov 23, 2024
1 parent 9437f56 commit 17114f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "device/usbd.h"
#include "main.h"

/**================================================== *
Expand Down Expand Up @@ -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();
}
}

0 comments on commit 17114f7

Please sign in to comment.