Closed RikardO-HM closed 1 year ago
we will need to change this
case PROT_TYPE_MODEM_ON:
modem_ctrl_modem_on_signal = (write_cmd->msg.write_msg.data) ? 1 : 0;
break;
maybe to
case PROT_TYPE_MODEM_ON:
if(write_cmd->msg.write_msg.data == 0xaa)
modem_ctrl_modem_on_signal = 0xaa;
else
modem_ctrl_modem_on_signal = (write_cmd->msg.write_msg.data) ? 1 : 0;
break;
then in modem.c change so we set Set_Mode_State(state_turn_on); and when it gets to state_turn_on_finished we can add an extra state so it not check the modem_pwr_indicator_input if modem_ctrl_modem_on_signal == 0xaa.
state_modem_update: only get out here if modem reset or modem_ctl_on =0
is that a good soulution @hugfro
TODO fix a application that flash co cpu so the modem does not restart(when the odem is in recovery mode) maybe introduse echo 2 > /opt/h/pic_attributes/ctrl_modem_on (or other value?).