aboutsummaryrefslogtreecommitdiff
path: root/keyboards/moonlander
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/moonlander')
-rw-r--r--keyboards/moonlander/matrix.c14
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
274void matrix_power_up(void) { 274void 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;