remove atomic counter from bootloader to save space

fido2_on_u2f
Conor Patrick 2019-10-08 14:26:33 -04:00
rodzic 9158453830
commit 9ecfda02c5
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -316,3 +316,10 @@ void bootloader_heartbeat()
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;
}

Wyświetl plik

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