mirror of
https://github.com/speedypotato/Pico-Game-Controller.git
synced 2026-10-09 23:58:23 +03:00
Merge pull request #9 from speedypotato/bugfix/minor_led_update
LEDs only update when switch change in reactive mode
This commit is contained in:
Binary file not shown.
@@ -242,8 +242,9 @@ void update_inputs() {
|
||||
sw_changed = true;
|
||||
}
|
||||
}
|
||||
// Update LEDs if in reactive mode
|
||||
if (reactive_timeout_count >= REACTIVE_TIMEOUT_MAX) leds_changed = true;
|
||||
// Update LEDs if input changed while in reactive mode
|
||||
if (sw_changed && reactive_timeout_count >= REACTIVE_TIMEOUT_MAX)
|
||||
leds_changed = true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user