Skip to content

Commit 1a06292

Browse files
author
Antti Kauppila
committed
Changed default values to null and made handling for those in code
1 parent bc81259 commit 1a06292

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

ESP8266Interface.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@
2121
#include "nsapi_types.h"
2222

2323

24+
#ifndef MBED_CONF_ESP8266_TX
25+
#ifdef TARGET_FF_ARDUINO
26+
#define MBED_CONF_ESP8266_TX D1
27+
#else
28+
#define MBED_CONF_ESP8266_TX NC
29+
#endif
30+
#endif
31+
32+
#ifndef MBED_CONF_ESP8266_RX
33+
#ifdef TARGET_FF_ARDUINO
34+
#define MBED_CONF_ESP8266_RX D0
35+
#else
36+
#define MBED_CONF_ESP8266_RX NC
37+
#endif
38+
#endif
39+
2440
// Firmware version
2541
#define ESP8266_VERSION 2
2642

mbed_lib.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"config": {
44
"tx": {
55
"help": "TX pin for serial connection",
6-
"value": "NC"
6+
"value": null
77
},
88
"rx": {
99
"help": "RX pin for serial connection",
10-
"value": "NC"
10+
"value": null
1111
},
1212
"debug": {
1313
"help": "Enable debug logs",

0 commit comments

Comments
 (0)