Fix esp8266 compilation failed

bump version
This commit is contained in:
Luc 2022-08-17 17:41:31 +08:00
parent dd2e4ec1d8
commit 6a82412878
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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