sensors: INA shunt set at runtime -- sensor set ina.shunt <mOhm>, kept in prefs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-12 13:58:39 +01:00
1 parent ad4f53016c
commit 507842cea2
12 files changed
+106 -7

No files matched your search

+4
View File
@@ -1928,6 +1928,10 @@ void MyMesh::handleCmdFrame(size_t len) {
savePrefs();
}
#endif
if (strcmp(sp, "ina.shunt") == 0) { // CUSTOM (TeTeHacko): survives a reboot
_prefs.ina_shunt_mohm = atof(np);
savePrefs();
}
writeOKFrame();
} else {
writeErrFrame(ERR_CODE_ILLEGAL_ARG);