remove atomic counter from bootloader to save space

This commit is contained in:
Conor Patrick 2019-10-08 14:26:33 -04:00
parent 9158453830
commit 9ecfda02c5
2 changed files with 9 additions and 1 deletions

View File

@ -316,3 +316,10 @@ void bootloader_heartbeat()
led_rgb(((val * g)<<8) | ((val*r) << 16) | (val*b)); led_rgb(((val * g)<<8) | ((val*r) << 16) | (val*b));
} }
uint32_t ctap_atomic_count(uint32_t amount)
{
static uint32_t count = 1000;
count += (amount + 1);
return count;
}

View File

@ -410,6 +410,7 @@ void authenticator_write_state(AuthenticatorState * a, int backup)
} }
} }
#if !defined(IS_BOOTLOADER)
uint32_t ctap_atomic_count(uint32_t amount) uint32_t ctap_atomic_count(uint32_t amount)
{ {
int offset = 0; int offset = 0;
@ -501,7 +502,7 @@ uint32_t ctap_atomic_count(uint32_t amount)
return lastc; return lastc;
} }
#endif
void device_manage(void) void device_manage(void)