Skip to content

Commit 8f1a73f

Browse files
author
Veijo Pesonen
committed
Bugfix, TX and RX pin defaults provided if Arduino form factor
Fixes a bug where default constructor declaration is not given even if Arduino form factor shield is used. Required moving the defaults from the ESP8266Interface source file to the header file.
1 parent 7928560 commit 8f1a73f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

ESP8266Interface.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,6 @@
2323
#include "mbed_debug.h"
2424
#include "nsapi_types.h"
2525

26-
#ifdef TARGET_FF_ARDUINO
27-
#ifndef MBED_CONF_ESP8266_TX
28-
#define MBED_CONF_ESP8266_TX D1
29-
#endif
30-
31-
#ifndef MBED_CONF_ESP8266_RX
32-
#define MBED_CONF_ESP8266_RX D0
33-
#endif
34-
#endif /* TARGET_FF_ARDUINO */
35-
3626
#ifndef MBED_CONF_ESP8266_DEBUG
3727
#define MBED_CONF_ESP8266_DEBUG false
3828
#endif

ESP8266Interface.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232

3333
#define ESP8266_SOCKET_COUNT 5
3434

35+
#ifdef TARGET_FF_ARDUINO
36+
#ifndef MBED_CONF_ESP8266_TX
37+
#define MBED_CONF_ESP8266_TX D1
38+
#endif
39+
40+
#ifndef MBED_CONF_ESP8266_RX
41+
#define MBED_CONF_ESP8266_RX D0
42+
#endif
43+
#endif /* TARGET_FF_ARDUINO */
44+
3545
/** ESP8266Interface class
3646
* Implementation of the NetworkStack for the ESP8266
3747
*/

0 commit comments

Comments
 (0)