mirror of https://github.com/arendst/Tasmota.git
Update xdrv_122_file_json_settings_demo.ino
This commit is contained in:
parent
e77a5f57ff
commit
14f976b8a4
|
@ -54,6 +54,7 @@ struct {
|
||||||
|
|
||||||
#define XDRV_122_KEY "drvset122"
|
#define XDRV_122_KEY "drvset122"
|
||||||
|
|
||||||
|
#ifdef USE_UFILESYS
|
||||||
bool DrvDemoLoadData(void) {
|
bool DrvDemoLoadData(void) {
|
||||||
char key[] = XDRV_122_KEY;
|
char key[] = XDRV_122_KEY;
|
||||||
String json = UfsJsonSettingsRead(key);
|
String json = UfsJsonSettingsRead(key);
|
||||||
|
@ -96,6 +97,7 @@ void DrvDemoDeleteData(void) {
|
||||||
char key[] = XDRV_122_KEY;
|
char key[] = XDRV_122_KEY;
|
||||||
UfsJsonSettingsDelete(key); // Use defaults
|
UfsJsonSettingsDelete(key); // Use defaults
|
||||||
}
|
}
|
||||||
|
#endif // USE_UFILESYS
|
||||||
|
|
||||||
/*********************************************************************************************/
|
/*********************************************************************************************/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue