From 31a262fca88dd3c0055ff9aaf5f1ea8a770398e7 Mon Sep 17 00:00:00 2001 From: Rene 'Renne' Bartsch Date: Tue, 17 Jul 2018 17:23:07 +0200 Subject: [PATCH] Reference to struct SYSCFG {} Settings added in FUNC_SAVE_BEFORE_RESTART ID section. --- Sensor-API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sensor-API.md b/Sensor-API.md index 99029dee..809ac5d4 100644 --- a/Sensor-API.md +++ b/Sensor-API.md @@ -131,7 +131,7 @@ snprintf_P(mqtt_data, sizeof(mqtt_data), PSTR("%s{s}MPR121%c Button%d{m}%d{e}"), It should be wrapped in `#ifdef USE_WEBSERVER ... #endif // USE_WEBSERVER` ### FUNC_SAVE_BEFORE_RESTART -This callback ID is called to allow a sensor to prepare for saving configuration changes. To be used to save volatile data just before a restart. +This callback ID is called to allow a sensor to prepare for saving configuration changes. To be used to save volatile data just before a restart. Variables can be appended to `struct SYSCFG {} Settings` in file `sonoff/settings.h`. ### FUNC_COMMAND This callback ID is called when a sensor specific command ``Sensor`` is executed where xx is the sensor index.