File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 21
21
#include " unity/unity.h"
22
22
#include " utest.h"
23
23
#include " udp_tests.h"
24
+ #include " CellularDevice.h"
24
25
25
26
using namespace utest ::v1;
26
27
@@ -70,6 +71,10 @@ static void _sigio_handler(osThreadId id)
70
71
71
72
void UDPSOCKET_ECHOTEST_BURST ()
72
73
{
74
+ #ifdef MBED_CONF_APP_BAUD_RATE
75
+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
76
+ #endif
77
+
73
78
SocketAddress udp_addr;
74
79
NetworkInterface::get_default_instance ()->gethostbyname (ECHO_SERVER_ADDR, &udp_addr);
75
80
udp_addr.set_port (ECHO_SERVER_PORT);
@@ -153,6 +158,10 @@ void UDPSOCKET_ECHOTEST_BURST()
153
158
154
159
void UDPSOCKET_ECHOTEST_BURST_NONBLOCK ()
155
160
{
161
+ #ifdef MBED_CONF_APP_BAUD_RATE
162
+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
163
+ #endif
164
+
156
165
SocketAddress udp_addr;
157
166
NetworkInterface::get_default_instance ()->gethostbyname (ECHO_SERVER_ADDR, &udp_addr);
158
167
udp_addr.set_port (ECHO_SERVER_PORT);
You can’t perform that action at this time.
0 commit comments