Remove mode from Reading value - already present in Mode.

This commit is contained in:
2026-05-26 17:21:11 +02:00
parent 08201f1bc1
commit 676829a988
+1 -4
View File
@@ -203,10 +203,7 @@ class Meter {
if (this->overload) return "OL " + std::string(this->scale()) + this->unit(); if (this->overload) return "OL " + std::string(this->scale()) + this->unit();
char buf[48]; char buf[48];
snprintf(buf, sizeof(buf), "%s%.4g %s%s", this->negative() ? "-" : "", std::fabs(this->display_value), this->scale(), this->unit()); snprintf(buf, sizeof(buf), "%s%.4g %s%s", this->negative() ? "-" : "", std::fabs(this->display_value), this->scale(), this->unit());
std::string out(buf); return std::string(buf);
auto mode = this->mode_text();
if (!mode.empty()) out += " " + mode;
return out;
} }
enum Kind { KIND_OTHER, KIND_VOLTAGE, KIND_CURRENT, KIND_RESISTANCE, KIND_FREQUENCY, KIND_CAPACITANCE, KIND_TEMP_C, KIND_TEMP_F, KIND_DUTY }; enum Kind { KIND_OTHER, KIND_VOLTAGE, KIND_CURRENT, KIND_RESISTANCE, KIND_FREQUENCY, KIND_CAPACITANCE, KIND_TEMP_C, KIND_TEMP_F, KIND_DUTY };