Skip to content

Commit eb14b24

Browse files
committed
examples: Fix wrong incoming call URC structure
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 5c1974c commit eb14b24

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/adc-example/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
5858
case URC_CFUN_STATE_IND:
5959
break;
6060
case URC_COMING_CALL_IND:
61-
debug(DBG_OFF, "Incoming voice call from: %s\n", ((ST_ComingCall*)param2)->phoneNumber);
61+
debug(DBG_OFF, "Incoming voice call from: %s\n", ((struct callinfo_t *)param2)->phoneNumber);
6262
/* Take action here, Answer/Hang-up */
6363
break;
6464
case URC_CALL_STATE_IND:

examples/gpio-blink/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
6060
case URC_CFUN_STATE_IND:
6161
break;
6262
case URC_COMING_CALL_IND:
63-
debug(DBG_OFF, "Incoming voice call from: %s\n", ((ST_ComingCall*)param2)->phoneNumber);
63+
debug(DBG_OFF, "Incoming voice call from: %s\n", ((struct callinfo_t *)param2)->phoneNumber);
6464
/* Take action here, Answer/Hang-up */
6565
break;
6666
case URC_CALL_STATE_IND:

examples/socket-example/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
6868
case URC_CFUN_STATE_IND:
6969
break;
7070
case URC_COMING_CALL_IND:
71-
debug(DBG_OFF, "Incoming voice call from: %s\n", ((ST_ComingCall*)param2)->phoneNumber);
71+
debug(DBG_OFF, "Incoming voice call from: %s\n", ((struct callinfo_t *)param2)->phoneNumber);
7272
/* Take action here, Answer/Hang-up */
7373
break;
7474
case URC_CALL_STATE_IND:

examples/ssl-socket-clientauth/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
141141
case URC_CFUN_STATE_IND:
142142
break;
143143
case URC_COMING_CALL_IND:
144-
debug(DBG_OFF, "Incoming voice call from: %s\n", ((ST_ComingCall *)param2)->phoneNumber);
144+
debug(DBG_OFF, "Incoming voice call from: %s\n", ((struct callinfo_t *)param2)->phoneNumber);
145145
/* Take action here, Answer/Hang-up */
146146
break;
147147
case URC_CALL_STATE_IND:

examples/ssl-socket-example/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static void urc_callback(unsigned int param1, unsigned int param2)
6969
case URC_CFUN_STATE_IND:
7070
break;
7171
case URC_COMING_CALL_IND:
72-
debug(DBG_OFF, "Incoming voice call from: %s\n", ((ST_ComingCall*)param2)->phoneNumber);
72+
debug(DBG_OFF, "Incoming voice call from: %s\n", ((struct callinfo_t *)param2)->phoneNumber);
7373
/* Take action here, Answer/Hang-up */
7474
break;
7575
case URC_CALL_STATE_IND:

0 commit comments

Comments
 (0)