mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-23 06:22:48 +00:00
Warn LiFePO4 users about unchanged 4.2V chargers
This commit is contained in:
1 parent
24fed432bd
commit
fdd67ce1b3
2 files changed
+16
No files matched your search
@@ -244,6 +244,11 @@ bool handleVoltagePolicyCommand(const char* command, char* reply,
|
||||
}
|
||||
if (!save(boot, low, empty, full, adc_permille, next))
|
||||
snprintf(reply, reply_capacity, "Error: battery profile could not be saved");
|
||||
else if (next == LIFEPO4)
|
||||
snprintf(reply, reply_capacity,
|
||||
"OK - lifepo4 saved; reboot. "
|
||||
"WARNING: PROFILE DOES NOT CHANGE CHARGERS. "
|
||||
"A 4.2V CHARGER STILL CHARGES TO 4.2V AND CAN DESTROY LIFEPO4 CELLS.");
|
||||
else snprintf(reply, reply_capacity, "OK - %s profile saved; reboot for bootlock", value);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user