Skip to content

Commit fca572f

Browse files
committed
patches: add sleep after socket write
1 parent 7039fb9 commit fca572f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From ec7cc4e660b366364d8b11e4ee6480c41141ff04 Mon Sep 17 00:00:00 2001
2+
From: pennam <[email protected]>
3+
Date: Wed, 26 Mar 2025 15:08:40 +0100
4+
Subject: [PATCH] GEMALTO CINTERION: add 1ms sleep in socket sendto
5+
6+
---
7+
.../GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp
11+
index d164f85eb2..898f81cf66 100644
12+
--- a/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp
13+
+++ b/connectivity/drivers/cellular/GEMALTO/CINTERION/GEMALTO_CINTERION_CellularStack.cpp
14+
@@ -19,6 +19,7 @@
15+
#include "GEMALTO_CINTERION_CellularStack.h"
16+
#include "GEMALTO_CINTERION.h"
17+
#include "CellularLog.h"
18+
+#include "platform/mbed_thread.h"
19+
#include "rtos.h"
20+
21+
using namespace std::chrono_literals;
22+
@@ -538,6 +539,8 @@ sisw_retry:
23+
socket->tx_ready = false;
24+
}
25+
26+
+ thread_sleep_for(1); // wait for modem to process the data;
27+
+
28+
return (_at.get_last_error() == NSAPI_ERROR_OK) ? accept_len : NSAPI_ERROR_DEVICE_ERROR;
29+
}
30+
31+
--
32+
2.47.2
33+

0 commit comments

Comments
 (0)