Merge pull request #609 from keyboardio/ActiveModColor/init-fix

ActiveModColor: Re-scan the keymap if no mods found
pull/615/head
Jesse Vincent 6 years ago committed by GitHub
commit df3cfbd9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,6 +56,10 @@ EventHandlerResult ActiveModColorEffect::onLayerChange() {
} }
EventHandlerResult ActiveModColorEffect::beforeReportingState() { EventHandlerResult ActiveModColorEffect::beforeReportingState() {
if (mod_key_count_ == 0) {
onLayerChange();
}
for (uint8_t i = 0; i < mod_key_count_; i++) { for (uint8_t i = 0; i < mod_key_count_; i++) {
uint8_t coords = mod_keys_[i]; uint8_t coords = mod_keys_[i];
byte c = coords % COLS; byte c = coords % COLS;

Loading…
Cancel
Save