Temporary fix #307 issue, lose all data when change apiVersion on ESP32

This commit is contained in:
VietDzung 2025-03-08 10:59:54 +07:00
parent 6eb2048277
commit 8767a60f79

View File

@ -9,7 +9,7 @@ class DeviceObject: public InterfaceObject
public: public:
// increase this version anytime DeviceObject-API changes // increase this version anytime DeviceObject-API changes
// the following value represents the serialized representation of DeviceObject. // the following value represents the serialized representation of DeviceObject.
const uint16_t apiVersion = 2; const uint16_t apiVersion = 1; // Fix #307
DeviceObject(); DeviceObject();
uint8_t* save(uint8_t* buffer) override; uint8_t* save(uint8_t* buffer) override;