|
| 1 | +From 5cc2a1998d37bad69a0b4e75b7d6f7b92e95935c Mon Sep 17 00:00:00 2001 |
| 2 | + |
| 3 | +Date: Thu, 31 Oct 2024 12:03:00 +0100 |
| 4 | +Subject: [PATCH 247/247] GEMALTO CINTERION: add configuration for urcs during |
| 5 | + read |
| 6 | + |
| 7 | +--- |
| 8 | + .../CINTERION/GEMALTO_CINTERION_CellularStack.cpp | 9 +++++++-- |
| 9 | + 1 file changed, 7 insertions(+), 2 deletions(-) |
| 10 | + |
| 11 | +diff --git a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
| 12 | +index 9a3f22dc3c..a96cb2b360 100644 |
| 13 | +--- a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
| 14 | ++++ b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp |
| 15 | +@@ -527,8 +527,13 @@ sisw_retry: |
| 16 | + return (_at.get_last_error() == NSAPI_ERROR_OK) ? accept_len : NSAPI_ERROR_DEVICE_ERROR; |
| 17 | + } |
| 18 | + |
| 19 | +-#define DISABLE_URCs _at.at_cmd_discard("^SCFG", "=", "%s%s","Tcp/WithURCs","off") |
| 20 | +-#define RESTORE_URCs_AND_RETURN(ret) do { _at.at_cmd_discard("^SCFG", "=", "%s%s","Tcp/WithURCs","on"); return ret; } while(0) |
| 21 | ++#if defined GEMALTO_CINTERION_DISABLE_URC_READING |
| 22 | ++ #define DISABLE_URCs _at.at_cmd_discard("^SCFG", "=", "%s%s","Tcp/WithURCs","off") |
| 23 | ++ #define RESTORE_URCs_AND_RETURN(ret) do { _at.at_cmd_discard("^SCFG", "=", "%s%s","Tcp/WithURCs","on"); return ret; } while(0) |
| 24 | ++#else |
| 25 | ++ #define DISABLE_URCs |
| 26 | ++ #define RESTORE_URCs_AND_RETURN(ret) do { return ret; } while(0) |
| 27 | ++#endif |
| 28 | + |
| 29 | + nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_recvfrom_impl(CellularSocket *socket, SocketAddress *address, |
| 30 | + void *buffer, nsapi_size_t size) |
| 31 | +-- |
| 32 | +2.45.2 |
| 33 | + |
0 commit comments