From d54c6c6b149dbd133669557ee2c5b110e2ee8df9 Mon Sep 17 00:00:00 2001 From: Florian Didron <0x6664@hey.com> Date: Wed, 22 Jun 2022 10:32:32 +0900 Subject: fix: pairing crash on Ergodox --- quantum/oryx.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quantum/oryx.h') diff --git a/quantum/oryx.h b/quantum/oryx.h index 1deae0765d..526299b4aa 100644 --- a/quantum/oryx.h +++ b/quantum/oryx.h @@ -14,7 +14,7 @@ #define PAIRING_BLINK_STEPS 512 #define PAIRING_BLINK_END PAIRING_BLINK_STEPS * 60 #define PAIRING_SEQUENCE_SIZE 3 -#define PAIRING_SEQUENCE_NUM_STORED 5 +#define PAIRING_SEQUENCE_NUM_STORED 3 #define PAIRING_STORAGE_SIZE PAIRING_SEQUENCE_SIZE* PAIRING_SEQUENCE_NUM_STORED * sizeof(uint16_t) enum Oryx_Command_Code { @@ -52,6 +52,7 @@ void pairing_init_handler(void); void pairing_validate_handler(void); void pairing_validate_eeprom_handler(void); void pairing_init_event(void); +bool compare_sequences(keypos_t a[PAIRING_SEQUENCE_SIZE], keypos_t b[PAIRING_SEQUENCE_SIZE]); void pairing_key_input_event(void); void pairing_failed_event(void); void pairing_succesful_event(void); -- cgit v1.2.3