OTA compile option

This commit is contained in:
martin-ger
2019-01-20 10:10:23 +01:00
parent c2e0d99472
commit 19dac47c01
+6
View File
@@ -6,6 +6,9 @@
// OTA code based on SDK sample from Espressif.
//////////////////////////////////////////////////
#include "user_config.h"
#if OTAUPDATE == 1
#include <c_types.h>
#include <user_interface.h>
#include <espconn.h>
@@ -15,6 +18,7 @@
#include "rboot-ota.h"
#include "config_flash.h"
extern sysconfig_t config;
extern struct espconn *currentconn;
@@ -382,3 +386,5 @@ bool ICACHE_FLASH_ATTR rboot_ota_start(ota_callback callback) {
#ifdef __cplusplus
}
#endif
#endif