diff --git a/esp3d/src/include/version.h b/esp3d/src/include/version.h index 20cc0a22..8f97206d 100644 --- a/esp3d/src/include/version.h +++ b/esp3d/src/include/version.h @@ -22,7 +22,7 @@ #define _VERSION_ESP3D_H //version and sources location -#define FW_VERSION "3.0.0.a206" +#define FW_VERSION "3.0.0.a207" #define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0" #endif //_VERSION_ESP3D_H diff --git a/esp3d/src/modules/serial/serial_service.cpp b/esp3d/src/modules/serial/serial_service.cpp index 4b6ee842..4b4ee15e 100644 --- a/esp3d/src/modules/serial/serial_service.cpp +++ b/esp3d/src/modules/serial/serial_service.cpp @@ -157,8 +157,8 @@ bool SerialService::begin(uint8_t serialIndex) Serials[_serialIndex]->setRxBufferSize (SERIAL_RX_BUFFER_SIZE); #ifdef ARDUINO_ARCH_ESP8266 Serials[_serialIndex]->begin(br, ESP_SERIAL_PARAM, SERIAL_FULL, (_txPin == -1)?1:_txPin); - if (_rx != -1) { - Serials[_serialIndex]->pins((_txPin == -1)?1:_txPin, _rxPin) + if (_rxPin != -1) { + Serials[_serialIndex]->pins((_txPin == -1)?1:_txPin, _rxPin); } #endif //ARDUINO_ARCH_ESP8266