Пример #1
0
void l4c_eq_power_on_lind(kal_uint8 poweron_mode,
                                 kal_uint8 battery_level,
                                 kal_uint8 build_label,
                                 rtc_format_struct *rtc_time,
				     kal_uint8 flightmode_state,
				     kal_uint8 dual_sim_mode_setting,
				     kal_uint8 dual_sim_uart_setting)
{
    kal_uint8 cfun_state = 1;

    if (custom_disable_modem_auto_startup(&cfun_state) == KAL_FALSE)
    {
    #if !defined(__GEMINI__)
        l4c_nw_cfun_state_req(LMMI_SRC, cfun_state);
    #endif
    }
}
void l4c_eq_power_on_lind(kal_uint8 poweron_mode,
                                 kal_uint8 battery_level,
                                 kal_uint8 build_label,
                                 rtc_format_struct *rtc_time,
                                 kal_uint8 flightmode_state,
                                 kal_uint8 dual_sim_mode_setting,
                                 kal_uint8 dual_sim_uart_setting)
{
    kal_uint8 cfun_state = 1;

    if (custom_disable_modem_auto_startup(&cfun_state) == KAL_FALSE)
    {
        if (l4c_get_cfun_state() == 0)
        {
        #if defined(__GEMINI__)
            l4c_nw_efun_state_req(LMMI_SRC, (cfun_state==1)?QUAD_SIM_CONFIG:SIM_RADIO_OFF);
        #else
            l4c_nw_cfun_state_req(LMMI_SRC, cfun_state);
        #endif
        }
    }
}