Implemented client datasource

This commit is contained in:
Martino Ferrari committed 2026-06-25 00:45:45 +02:00
1 parent dca4872976
commit 0412c20edd
28 files changed
+3448 -618

No files matched your search

+2 -3
View File
@@ -553,9 +553,8 @@ bool ParseHistoryInfo(const std::string& json, HistoryInfoMsg& out) {
out.signals.clear();
out.enabled = false;
char tmp[16] = "";
jsonGetStr(json.c_str(), "enabled", tmp, sizeof(tmp));
out.enabled = (strcmp(tmp, "true") == 0);
/* "enabled" is a JSON boolean (unquoted true/false), not a string */
out.enabled = (strstr(json.c_str(), "\"enabled\":true") != nullptr);
double df = 0.0;
jsonGetDouble(json.c_str(), "durationHours", df);