void boot_ota(enum wake_sources wake_source, enum reset_reasons reset_reason, enum boot_targets boot_target) { set_boot_flags(BOOT_OTA_ONGOING); if (ota_start()) set_boot_flags(BOOT_OTA_FAILURE); else set_boot_flags(BOOT_OTA_COMPLETE); reboot(TARGET_MAIN); }
irom app_action_t application_function_ota_verify(const string_t *src, string_t *dst) { return(ota_start(src, dst, true)); }
irom app_action_t application_function_ota_write(const string_t *src, string_t *dst) { return(ota_start(src, dst, false)); }