Arduino 2.1.1:
compiling is ok, but, uploading process stuck and need to reboot Teensy.
file "lin_bus.cpp"
void LIN::begin(HardwareSerial stream, uint16_t baudrate, uint8_t break_characters) {
(stream).begin(baudrate, SERIAL_8N1); // problem with this call, if it commented upload is ok, but sure sketch does not work.
this->_stream = stream;
..............................
Arduino 1.8.19: compiling is ok, sketch works.
Arduino 2.1.1: compiling is ok, but, uploading process stuck and need to reboot Teensy.
file "lin_bus.cpp" void LIN::begin(HardwareSerial stream, uint16_t baudrate, uint8_t break_characters) { (stream).begin(baudrate, SERIAL_8N1); // problem with this call, if it commented upload is ok, but sure sketch does not work. this->_stream = stream; ..............................