Info menu: Fixed battery percentage

replace/d1969b2faa1519aabf83942b60f8b1c03b54bde6
Federico Amedeo Izzo 2021-02-02 21:10:48 +01:00
rodzic 61ad0879c5
commit 65b5c0b002
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -138,7 +138,7 @@ int _ui_getInfoValueName(char *buf, uint8_t max_len, uint8_t index)
else if(strcmp(info_items[index], "Bat. Voltage") == 0)
snprintf(buf, max_len, "%.1fV", last_state.v_bat);
else if(strcmp(info_items[index], "Bat. Charge") == 0)
snprintf(buf, max_len, "%.1f%%", last_state.charge);
snprintf(buf, max_len, "%.1f%%", last_state.charge * 100);
else if(strcmp(info_items[index], "RSSI") == 0)
snprintf(buf, max_len, "%.1fdBm", last_state.rssi);
return 0;