A fork of the original interface for OS/2. Features a correctly-implemented recv (but retains the old behavior via recv2).
Dependents: weather_clock weather_clock
Revision 51:c8c727b413d9, committed 2019-03-31
- Comitter:
- alexhrao
- Date:
- Sun Mar 31 15:39:31 2019 +0000
- Parent:
- 50:f484783b8a34
- Child:
- 52:a5c7a72aa707
- Commit message:
- Turn off debugging
Changed in this revision
ESP8266/ESP8266.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ESP8266/ESP8266.cpp Sun Mar 31 03:08:45 2019 +0000 +++ b/ESP8266/ESP8266.cpp Sun Mar 31 15:39:31 2019 +0000 @@ -23,7 +23,7 @@ #include <algorithm> //Debug is disabled by default -#if 1 +#if 0 #define DBG(x, ...) printf("[ESP8266 : DBG]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); #define WARN(x, ...) printf("[ESP8266 : WARN]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); #define ERR(x, ...) printf("[ESP8266 : ERR]"x" \t[%s,%d]\r\n", ##__VA_ARGS__,__FILE__,__LINE__); @@ -44,10 +44,10 @@ _serial(tx, rx), _reset_pin(reset) { INFO("Initializing ESP8266 object"); - //_baud = baud; - //_timeout = timeout; + _baud = baud; + _timeout = timeout; - //_serial.baud(_baud); + _serial.baud(_baud); _inst = this; }