Skip to content

Commit 0831182

Browse files
committed
set auth counter to 200 for v7
1 parent fef01a8 commit 0831182

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

source_code/main_mcu/src/main.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,9 @@ void main_platform_init(void)
338338
if (custom_fs_get_device_flag_value(FUNCTIONAL_TEST_PASSED_FLAG_ID) == FALSE)
339339
#endif
340340
{
341-
/* First boot initializations: set auth counter value to 100 due to possible (non-security critical) hiccups on first mass production batch */
342-
custom_fs_set_auth_challenge_counter(100);
341+
/* First boot initializations: set auth counter value to 200 due to possible (non-security critical) hiccups on first mass production batch */
342+
custom_fs_set_auth_challenge_counter(200);
343+
timer_delay_ms(1);
343344
custom_fs_set_undefined_settings(TRUE);
344345

345346
/* Then functional testing */
@@ -480,11 +481,15 @@ void main_platform_init(void)
480481
logic_aux_mcu_flash_firmware_update(TRUE);
481482
}
482483

483-
/* Issue for some devices that had bundle < 4: some of them wouldn't have their auth counter set to 0 */
484+
/* Issue for some devices that had bundle < 4 & 7: some of them wouldn't have their auth counter set to 0 */
484485
if (custom_fs_get_platform_bundle_version() == 4)
485486
{
486487
custom_fs_set_auth_challenge_counter(100);
487488
}
489+
if (custom_fs_get_platform_bundle_version() == 7)
490+
{
491+
custom_fs_set_auth_challenge_counter(200);
492+
}
488493
#endif
489494
}
490495

source_code/main_mcu/src/platform_defines.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@
237237
- bundle v6
238238
- v0.79:- bluetooth disable on too many connections
239239
- screen wake-up on device lock
240+
- auth counter set to 200
240241
- bundle v7
241242
*/
242243

0 commit comments

Comments
 (0)