File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3669,7 +3669,11 @@ static void modem_reset(void)
36693669 set_network_state (HL7800_NOT_REGISTERED );
36703670 set_startup_state (HL7800_STARTUP_STATE_UNKNOWN );
36713671#ifdef CONFIG_MODEM_HL7800_FW_UPDATE
3672- set_fota_state (HL7800_FOTA_IDLE );
3672+ if (ictx .fw_update_state == HL7800_FOTA_REBOOT_AND_RECONFIGURE ) {
3673+ set_fota_state (HL7800_FOTA_COMPLETE );
3674+ } else {
3675+ set_fota_state (HL7800_FOTA_IDLE );
3676+ }
36733677#endif
36743678 k_sem_reset (& ictx .mdm_awake );
36753679}
@@ -4111,12 +4115,6 @@ int32_t mdm_hl7800_reset(void)
41114115
41124116 ret = modem_reset_and_configure ();
41134117
4114- #ifdef CONFIG_MODEM_HL7800_FW_UPDATE
4115- if (ictx .fw_update_state == HL7800_FOTA_REBOOT_AND_RECONFIGURE ) {
4116- set_fota_state (HL7800_FOTA_COMPLETE );
4117- }
4118- #endif
4119-
41204118 hl7800_unlock ();
41214119
41224120 return ret ;
You can’t perform that action at this time.
0 commit comments