From a4b6fe0b23bb73bb7b4f58f5a74bb8e470f08b99 Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Wed, 14 Oct 2020 10:46:53 +0900 Subject: fix issues with keyboard sleep (#316) Co-authored-by: Drashna Jael're --- keyboards/ergodox_ez/matrix.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'keyboards/ergodox_ez') diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index 18c576060d..7647ee912b 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c @@ -321,3 +321,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; + } + +} -- cgit v1.2.3