OLED display fix

Charger states now use 4 letter max to fit display.
Minor printf warning fix as well
No functional change.
This commit is contained in:
Hogthrob
2018-10-07 11:32:00 +02:00
parent dd130269bd
commit d8c090dea2
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ void init_watchdog(float timeout) {
IWDG->RLR = (uint32_t)(timeout * (LSI_FREQ/prescaler));
calculated_timeout = ((float)(prescaler * IWDG->RLR)) / LSI_FREQ;
printf("WATCHDOG set with prescaler:%d reload value: 0x%X - timeout:%f\n",prescaler, IWDG->RLR, calculated_timeout);
printf("WATCHDOG set with prescaler:%d reload value: 0x%lX - timeout:%f\n",prescaler, IWDG->RLR, calculated_timeout);
IWDG->KR = 0xAAAA; // reload
IWDG->KR = 0xCCCC; // start