main: minor, improve code

This commit is contained in:
King Kévin 2021-08-17 08:47:46 +02:00
parent 30a5bc447c
commit e22bef850b
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -15,7 +15,7 @@
static void wait_10us(uint32_t us10)
{
us10 = ((us10 / (1 << CLK->CKDIVR.fields.HSIDIV)) * 1000) / 206; // calibrated for 1 ms
for (volatile uint32_t t = 0; t < us10; t++); // burn energy
while (us10--); // burn energy
}
void main(void)