Reference to struct SYSCFG {} Settings added in FUNC_SAVE_BEFORE_RESTART ID section.

Rene 'Renne' Bartsch 2018-07-17 17:23:07 +02:00
parent b0043d2a83
commit 31a262fca8
1 changed files with 1 additions and 1 deletions

@ -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<xx>`` is executed where xx is the sensor index.