diff options
Diffstat (limited to 'sms.c')
-rw-r--r-- | sms.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -697,7 +697,11 @@ void ipc_sms_deliver_report(struct ipc_message_info *info) void ipc_sms_device_ready(struct ipc_message_info *info) { - if(ril_state.radio_state == COMPAT_RADIO_STATE_ON) { +#if RIL_VERSION >= 7 + if(ril_state.radio_state == RADIO_STATE_ON) { +#else + if(ril_state.radio_state == RADIO_STATE_SIM_READY) { +#endif ipc_fmt_send(IPC_SMS_DEVICE_READY, IPC_TYPE_SET, NULL, 0, info->aseq); } |