mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
fix userdata saverestore (#133)
* * fix for save/restore of userdata * change declaration of restore() in knx_facade.h to "const uint8_t* restore(const uint8_t* buffer)" to avoid calling default implementation in save_restore.h * change typedefs to separate SaveCallback and RestoreCallback * fix BME60 example, knx.setRestoreCallback() needs to use const uint8_t* as well * fix commitToEeprom for ESP32 * trigger dirty flag for ESP32 to make sure data is committed
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
void checkIaqSensorStatus(void);
|
||||
void errLeds(void);
|
||||
uint8_t* saveBme680State(uint8_t* buffer);
|
||||
uint8_t* loadBme680State(uint8_t* buffer);
|
||||
const uint8_t* loadBme680State(const uint8_t* buffer);
|
||||
void triggerCallback(GroupObject& go);
|
||||
void updateState();
|
||||
|
||||
@@ -214,7 +214,7 @@ void errLeds(void)
|
||||
delay(100);
|
||||
}
|
||||
|
||||
uint8_t* loadBme680State(uint8_t* buffer)
|
||||
const uint8_t* loadBme680State(const uint8_t* buffer)
|
||||
{
|
||||
// Existing state in EEPROM
|
||||
Serial.println("Reading state from EEPROM");
|
||||
|
||||
Reference in New Issue
Block a user