mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
add TODO as reminder
This commit is contained in:
@@ -1102,6 +1102,7 @@ bool System::check_restore() {
|
|||||||
|
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
// see if we have a temp file, if so try and read it
|
// see if we have a temp file, if so try and read it
|
||||||
|
// TODO find a nicer way to see if a file exists without reporting an error
|
||||||
File new_file = LittleFS.open(TEMP_FILENAME_PATH);
|
File new_file = LittleFS.open(TEMP_FILENAME_PATH);
|
||||||
if (new_file) {
|
if (new_file) {
|
||||||
JsonDocument jsonDocument;
|
JsonDocument jsonDocument;
|
||||||
@@ -1556,7 +1557,7 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
|||||||
if (emsdevice && (emsdevice->device_type() == device_class.first)) {
|
if (emsdevice && (emsdevice->device_type() == device_class.first)) {
|
||||||
JsonObject obj = devices.add<JsonObject>();
|
JsonObject obj = devices.add<JsonObject>();
|
||||||
obj["type"] = emsdevice->device_type_name(); // non translated name
|
obj["type"] = emsdevice->device_type_name(); // non translated name
|
||||||
obj["name"] = emsdevice->name();
|
obj["name"] = emsdevice->name(); // custom name
|
||||||
obj["device id"] = Helpers::hextoa(emsdevice->device_id());
|
obj["device id"] = Helpers::hextoa(emsdevice->device_id());
|
||||||
obj["product id"] = emsdevice->product_id();
|
obj["product id"] = emsdevice->product_id();
|
||||||
obj["version"] = emsdevice->version();
|
obj["version"] = emsdevice->version();
|
||||||
|
|||||||
Reference in New Issue
Block a user