diff options
author | Florian Didron <0x6664@hey.com> | 2020-10-14 10:48:06 +0900 |
---|---|---|
committer | Florian Didron <0x6664@hey.com> | 2020-10-14 10:48:06 +0900 |
commit | a270d67f9f7a3d5ccbe354007775ac3f1033376f (patch) | |
tree | c64b384abef89a8c47c22c7c8a4549085e7e034b /keyboards/ergodox_ez | |
parent | ded395e45d815cef58b454345bc536fa188d6280 (diff) | |
parent | a4b6fe0b23bb73bb7b4f58f5a74bb8e470f08b99 (diff) |
Merge branch 'firmware19' of github.com:zsa/qmk_firmware into firmware19
Diffstat (limited to 'keyboards/ergodox_ez')
-rw-r--r-- | keyboards/ergodox_ez/matrix.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index d18800f19b..88aeb61722 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c @@ -242,3 +242,18 @@ static void select_row(uint8_t row) { } } } + +// DO NOT REMOVE +// Needed for proper wake/sleep +void matrix_power_up(void) { + mcp23018_status = init_mcp23018(); + + unselect_rows(); + init_cols(); + + // initialize matrix state: all keys off + for (uint8_t i=0; i < MATRIX_ROWS; i++) { + matrix[i] = 0; + } + +} |