diff options
author | Drashna Jaelre <drashna@live.com> | 2020-10-23 02:13:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 20:13:14 +1100 |
commit | 9093f877a2f7b23576cbd03140acf2904d2a1c92 (patch) | |
tree | 1e0d31c2d467272da8e1707d9afdaaa2ecef639b /keyboards/moonlander/matrix.c | |
parent | 5e9c078c7846d93b67e1c94a24b4c50781d739f2 (diff) | |
download | qmk_firmware-9093f877a2f7b23576cbd03140acf2904d2a1c92.tar.gz qmk_firmware-9093f877a2f7b23576cbd03140acf2904d2a1c92.zip |
[Keyboard] Fix Moonlander indicator LEDs during sleep (#10683)
Diffstat (limited to 'keyboards/moonlander/matrix.c')
-rw-r--r-- | keyboards/moonlander/matrix.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/keyboards/moonlander/matrix.c b/keyboards/moonlander/matrix.c index df498bd6e..872643f61 100644 --- a/keyboards/moonlander/matrix.c +++ b/keyboards/moonlander/matrix.c | |||
@@ -272,8 +272,7 @@ void matrix_print(void) { | |||
272 | // DO NOT REMOVE | 272 | // DO NOT REMOVE |
273 | // Needed for proper wake/sleep | 273 | // Needed for proper wake/sleep |
274 | void matrix_power_up(void) { | 274 | void matrix_power_up(void) { |
275 | mcp23018_init(); | 275 | bool temp_launching = is_launching; |
276 | |||
277 | // outputs | 276 | // outputs |
278 | setPinOutput(B10); | 277 | setPinOutput(B10); |
279 | setPinOutput(B11); | 278 | setPinOutput(B11); |
@@ -291,6 +290,17 @@ void matrix_power_up(void) { | |||
291 | setPinInputLow(A7); | 290 | setPinInputLow(A7); |
292 | setPinInputLow(B0); | 291 | setPinInputLow(B0); |
293 | 292 | ||
293 | mcp23018_init(); | ||
294 | is_launching = temp_launching; | ||
295 | if (!is_launching) { | ||
296 | ML_LED_1(false); | ||
297 | ML_LED_2(false); | ||
298 | ML_LED_3(false); | ||
299 | ML_LED_4(false); | ||
300 | ML_LED_5(false); | ||
301 | ML_LED_6(false); | ||
302 | } | ||
303 | |||
294 | // initialize matrix state: all keys off | 304 | // initialize matrix state: all keys off |
295 | for (uint8_t i=0; i < MATRIX_ROWS; i++) { | 305 | for (uint8_t i=0; i < MATRIX_ROWS; i++) { |
296 | matrix[i] = 0; | 306 | matrix[i] = 0; |