Merge pull request #81 from algernon/f/LEDs/late-sync

Sync the LEDs at the end of the loop
pull/85/head
Jesse Vincent 8 years ago committed by GitHub
commit 1cf37d2134

@ -39,6 +39,8 @@ Keyboardio_::loop(void) {
custom_loop_t hook = loopHooks[i]; custom_loop_t hook = loopHooks[i];
(*hook)(true); (*hook)(true);
} }
led_sync ();
} }
void void

@ -51,8 +51,6 @@ LEDControl_::update (void) {
if (modes[mode]) if (modes[mode])
(modes[mode]->update) (); (modes[mode]->update) ();
led_sync ();
previousMode = mode; previousMode = mode;
} }

Loading…
Cancel
Save