Skip to content

Commit

Permalink
Write to flash on every 10 operations instead of 100.
Browse files Browse the repository at this point in the history
User with chamberlain door ran into issue with rolling code not syncing
properly.
  • Loading branch information
jgstroud committed May 2, 2024
1 parent 2839c7f commit 9cce1dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/comms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ SecPlus2Reader reader;
uint32_t id_code = 0;
uint32_t rolling_code = 0;
uint32_t last_saved_code = 0;
#define MAX_CODES_WITHOUT_FLASH_WRITE 100
#define MAX_CODES_WITHOUT_FLASH_WRITE 10

/******************************* SECURITY 1.0 *********************************/

Expand Down

0 comments on commit 9cce1dc

Please sign in to comment.