We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e25270 commit 4104f62Copy full SHA for 4104f62
application/main/src/keyboard/keyboard_matrix.c
@@ -261,7 +261,8 @@ __attribute__((weak)) void matrix_wakeup_prepare(void)
261
nrf_gpio_cfg_sense_input(SINGLE_WAKEUP_BUTTON, NRF_GPIO_PIN_PULLDOWN, NRF_GPIO_PIN_SENSE_HIGH);
262
#endif
263
264
-#ifndef DISABLE_MATRIX_WAKEUP
+// 必须有其他的唤醒方式才可以禁用全矩阵唤醒
265
+#if !defined(SINGLE_WAKEUP_BUTTON) || !defined(DISABLE_MATRIX_WAKEUP)
266
// 这里监听所有按键作为唤醒按键,所以真正的唤醒判断应该在main的初始化过程中
267
#ifdef ROW_IN
268
for (uint8_t i = 0; i < MATRIX_COLS; i++) {
0 commit comments