Esempio n. 1
0
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);
}
Esempio n. 2
0
irom app_action_t application_function_ota_verify(const string_t *src, string_t *dst)
{
	return(ota_start(src, dst, true));
}
Esempio n. 3
0
irom app_action_t application_function_ota_write(const string_t *src, string_t *dst)
{
	return(ota_start(src, dst, false));
}