kopia lustrzana https://github.com/solokeys/solo1
remove atomic counter from bootloader to save space
rodzic
9158453830
commit
9ecfda02c5
|
@ -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;
|
||||
}
|
|
@ -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)
|
||||
|
|
Ładowanie…
Reference in New Issue