1
0
Fork 0
forked from forks/qmk_firmware

[Keyboard] Fix Moonlander indicator LEDs during sleep (#10683)

This commit is contained in:
Drashna Jaelre 2020-10-23 02:13:14 -07:00 committed by GitHub
parent 5e9c078c78
commit 9093f877a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -272,8 +272,7 @@ void matrix_print(void) {
// DO NOT REMOVE // DO NOT REMOVE
// Needed for proper wake/sleep // Needed for proper wake/sleep
void matrix_power_up(void) { void matrix_power_up(void) {
mcp23018_init(); bool temp_launching = is_launching;
// outputs // outputs
setPinOutput(B10); setPinOutput(B10);
setPinOutput(B11); setPinOutput(B11);
@ -291,6 +290,17 @@ void matrix_power_up(void) {
setPinInputLow(A7); setPinInputLow(A7);
setPinInputLow(B0); setPinInputLow(B0);
mcp23018_init();
is_launching = temp_launching;
if (!is_launching) {
ML_LED_1(false);
ML_LED_2(false);
ML_LED_3(false);
ML_LED_4(false);
ML_LED_5(false);
ML_LED_6(false);
}
// initialize matrix state: all keys off // initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) { for (uint8_t i=0; i < MATRIX_ROWS; i++) {
matrix[i] = 0; matrix[i] = 0;