don't bother with flash strings for print_value

This commit is contained in:
proddy
2020-06-17 16:27:17 +02:00
parent 94d527d2d0
commit 033ce0c77a

View File

@@ -351,7 +351,7 @@ void Boiler::show_values(uuid::console::Shell & shell) {
buffer[1] = '\0'; buffer[1] = '\0';
strlcpy(s, buffer, 7); strlcpy(s, buffer, 7);
strlcat(s, "x3min", 7); strlcat(s, "x3min", 7);
print_value(shell, 2, F("Warm Water circulation pump freq"), FPSTR(s)); // TODO check print_value(shell, 2, F("Warm Water circulation pump freq"), s);
} }
print_value(shell, 2, F("Warm Water circulation active"), wWCirc_, nullptr, EMS_VALUE_BOOL); print_value(shell, 2, F("Warm Water circulation active"), wWCirc_, nullptr, EMS_VALUE_BOOL);
@@ -395,7 +395,7 @@ void Boiler::show_values(uuid::console::Shell & shell) {
if (Helpers::hasValue(serviceCode_)) { if (Helpers::hasValue(serviceCode_)) {
shell.printfln(F(" System service code: %s (%d)"), serviceCodeChar_, serviceCode_); shell.printfln(F(" System service code: %s (%d)"), serviceCodeChar_, serviceCode_);
} else if (serviceCodeChar_[0] != '\0') { } else if (serviceCodeChar_[0] != '\0') {
print_value(shell, 2, F("System service code"), FPSTR(serviceCodeChar_)); // TODO check print_value(shell, 2, F("System service code"), serviceCodeChar_);
} }
// UBAParameters // UBAParameters