diff options
author | Florian Didron <0x6664@hey.com> | 2022-06-22 10:32:32 +0900 |
---|---|---|
committer | Florian Didron <0x6664@hey.com> | 2022-06-22 10:32:32 +0900 |
commit | d54c6c6b149dbd133669557ee2c5b110e2ee8df9 (patch) | |
tree | 1d76586f7eba721065f17ef39ad9c7f20a48d260 /quantum/oryx.h | |
parent | 939bcc54225c54d6f698e2d8d4a395163a837a1d (diff) |
fix: pairing crash on Ergodox
Diffstat (limited to 'quantum/oryx.h')
-rw-r--r-- | quantum/oryx.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |