INA219: Remove value from Config UI, delete unnecessary default in switch
@@ -52,24 +52,19 @@ void INA219Value::enable() {
output = (ina219_->ada_ina219_->getBusVoltage_V() +
(ina219_->ada_ina219_->getShuntVoltage_mV() / 1000));
break;
- default:
- debugE("FATAL: invalid val_type parameter.");
}
-
notify();
});
}
void INA219Value::get_configuration(JsonObject& root) {
root["read_delay"] = read_delay_;
- root["value"] = output;
}
static const char SCHEMA[] PROGMEM = R"###({
"type": "object",
"properties": {
- "read_delay": { "title": "Read delay", "type": "number", "description": "The time, in milliseconds, between each read of the input" },
- "value": { "title": "Last value", "type" : "number", "readOnly": true }
+ "read_delay": { "title": "Read delay", "type": "number", "description": "The time, in milliseconds, between each read of the input" }
}
})###";
