Merge pull request #404 from bensuffolk/master

Add option to auto create other standard files
This commit is contained in:
fvanroie 2022-12-20 21:17:02 +01:00 committed by GitHub
commit 30df6857b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,6 +215,15 @@ void filesystemSetupFiles()
filesystem_write_file("/pages.jsonl", HASP_PAGES_JSONL);
filesystem_write_file("/online.cmd", HASP_ONLINE_CMD);
filesystem_write_file("/offline.cmd", HASP_OFFLINE_CMD);
#ifdef HASP_BOOT_CMD
filesystem_write_file("/boot.cmd", HASP_BOOT_CMD);
#endif
#ifdef HASP_MQTT_ON_CMD
filesystem_write_file("/mqtt_on.cmd", HASP_MQTT_ON_CMD);
#endif
#ifdef HASP_MQTT_OFF_CMD
filesystem_write_file("/mqtt_off.cmd", HASP_MQTT_OFF_CMD);
#endif
}
bool filesystemSetup(void)