keyboardio / Model01-Firmware

The "standard" Keyboardio Model 01 Firmware sketch.
GNU General Public License v3.0
172 stars 302 forks source link

Fix turning LEDs off on suspend #76

Closed algernon closed 5 years ago

algernon commented 5 years ago

When suspending, we want to set all LEDs off & sync first, and only then pause LED operations. When the code was originally written, LEDControl.syncLeds() synced LEDs even when LEDControl.paused was set - it no longer does so, so we need to pause after we synced.

This addresses keyboardio/Kaleidoscope#516, at least partially.