Skip to content

Commit

Permalink
Add suspend support to the ChibiOS visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Jul 7, 2016
1 parent dae7c9b commit bcbd8f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tmk_core/protocol/chibios/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ int main(void) {

if(USB_DRIVER.state == USB_SUSPENDED) {
print("[s]");
#ifdef VISUALIZER_ENABLE
visualizer_suspend();
#endif
while(USB_DRIVER.state == USB_SUSPENDED) {
/* Do this in the suspended state */
#ifdef SERIAL_LINK_ENABLE
Expand All @@ -172,6 +175,10 @@ int main(void) {
#ifdef MOUSEKEY_ENABLE
mousekey_send();
#endif /* MOUSEKEY_ENABLE */

#ifdef VISUALIZER_ENABLE
visualizer_resume();
#endif
}

keyboard_task();
Expand Down

0 comments on commit bcbd8f1

Please sign in to comment.