Remove mode from Reading value - already present in Mode.
This commit is contained in:
+1
-4
@@ -203,10 +203,7 @@ class Meter {
|
||||
if (this->overload) return "OL " + std::string(this->scale()) + this->unit();
|
||||
char buf[48];
|
||||
snprintf(buf, sizeof(buf), "%s%.4g %s%s", this->negative() ? "-" : "", std::fabs(this->display_value), this->scale(), this->unit());
|
||||
std::string out(buf);
|
||||
auto mode = this->mode_text();
|
||||
if (!mode.empty()) out += " " + mode;
|
||||
return out;
|
||||
return std::string(buf);
|
||||
}
|
||||
|
||||
enum Kind { KIND_OTHER, KIND_VOLTAGE, KIND_CURRENT, KIND_RESISTANCE, KIND_FREQUENCY, KIND_CAPACITANCE, KIND_TEMP_C, KIND_TEMP_F, KIND_DUTY };
|
||||
|
||||
Reference in New Issue
Block a user