diff --git a/src/IBusBM.cpp b/src/IBusBM.cpp index 624c11a..bd5f378 100644 --- a/src/IBusBM.cpp +++ b/src/IBusBM.cpp @@ -90,7 +90,7 @@ void IBusBM::begin(HardwareSerial &serial, int8_t timerid, int8_t rxPin, int8_t #ifdef ARDUINO_ARCH_ESP32 serial.begin(115200, SERIAL_8N1, rxPin, txPin); #else - serial.begin(115200, SERIAL_8N1); + serial.begin(115200); #endif this->stream = &serial; diff --git a/src/IBusBM.h b/src/IBusBM.h index 9287d43..e7dc034 100644 --- a/src/IBusBM.h +++ b/src/IBusBM.h @@ -90,7 +90,7 @@ class IBusBM { } sensorinfo; sensorinfo sensors[SENSORMAX]; uint8_t NumberSensors = 0; // number of sensors - IBusBM* IBusBMnext = NULL; // pointer to the next class instance to be used to call the loop() method from timer interrupt + IBusBM* IBusBMnext = nullptr; // pointer to the next class instance to be used to call the loop() method from timer interrupt }; #endif