aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/protocol/chibios/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmk_core/protocol/chibios/main.c b/tmk_core/protocol/chibios/main.c
index 36fd45d45..b0eb9aef8 100644
--- a/tmk_core/protocol/chibios/main.c
+++ b/tmk_core/protocol/chibios/main.c
@@ -155,6 +155,9 @@ int main(void) {
155 155
156 if(USB_DRIVER.state == USB_SUSPENDED) { 156 if(USB_DRIVER.state == USB_SUSPENDED) {
157 print("[s]"); 157 print("[s]");
158#ifdef VISUALIZER_ENABLE
159 visualizer_suspend();
160#endif
158 while(USB_DRIVER.state == USB_SUSPENDED) { 161 while(USB_DRIVER.state == USB_SUSPENDED) {
159 /* Do this in the suspended state */ 162 /* Do this in the suspended state */
160#ifdef SERIAL_LINK_ENABLE 163#ifdef SERIAL_LINK_ENABLE
@@ -172,6 +175,10 @@ int main(void) {
172#ifdef MOUSEKEY_ENABLE 175#ifdef MOUSEKEY_ENABLE
173 mousekey_send(); 176 mousekey_send();
174#endif /* MOUSEKEY_ENABLE */ 177#endif /* MOUSEKEY_ENABLE */
178
179#ifdef VISUALIZER_ENABLE
180 visualizer_resume();
181#endif
175 } 182 }
176 183
177 keyboard_task(); 184 keyboard_task();