Commit 3ceeac6
committed
app: Flush URCs before rsp_send()
The data_send() API was already flushing URC messages before sending
the data to the pipe.
Now if application uses rsp_send() or rsp_send_to() outside of
AT command context and combined with data_send() it causes
URC messages to be appended in between two calls. Example:
rsp_send_to(pipe, "#XRECV: ...");
data_send(pipe, data); /**< this causes URCs to be flushed */
The response in the AT channel would be:
#XRECV: ...
#XAPOLL: <example urc>
data
The easiest fix would be to apply same mechanism to urc_send() as
the data_send() already does.
For clarify, use rsp_send_to() on all callbacks that might execute
from poll work handler.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>1 parent cc88c7d commit 3ceeac6
2 files changed
Lines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1489 | 1489 | | |
1490 | 1490 | | |
1491 | 1491 | | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1492 | 1500 | | |
1493 | 1501 | | |
1494 | 1502 | | |
| |||
1499 | 1507 | | |
1500 | 1508 | | |
1501 | 1509 | | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1502 | 1518 | | |
1503 | 1519 | | |
1504 | 1520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
1130 | | - | |
| 1130 | + | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | | - | |
| 1245 | + | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | 1248 | | |
| |||
0 commit comments