File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
features/cellular/TESTS/socket/udp Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 26
26
#error [NOT_SUPPORTED] CELLULAR_DEVICE must be defined
27
27
#endif
28
28
29
+ #ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
30
+ #error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
31
+ #endif
32
+
29
33
#include " greentea-client/test_env.h"
30
34
#include " unity.h"
31
35
#include " utest.h"
@@ -55,13 +59,13 @@ static SocketAddress echo_server_addr;
55
59
56
60
class EchoSocket : public UDPSocket {
57
61
public:
58
- EchoSocket (int size) : UDPSocket(), _async_flag(0 ), _data(0 ), _size(size) {
59
- }
60
- virtual ~EchoSocket () {
61
- delete _data;
62
- }
63
- void set_async (int async) {
64
- _async_flag = async;
62
+ EchoSocket (int size) : UDPSocket(), _async_flag(0 ), _data(0 ), _size(size) {
63
+ }
64
+ virtual ~EchoSocket () {
65
+ delete _data;
66
+ }
67
+ void set_async (int async) {
68
+ _async_flag = async;
65
69
if (_async_flag) {
66
70
set_blocking (false );
67
71
sigio (callback (this , &EchoSocket::async_callback));
You can’t perform that action at this time.
0 commit comments