It is simple to reproduce, but here is an example: https://wokwi.com/projects/399320984336916481 I use this function to receive modbus requests at 9600 and in between to print short debug messages with 115200. See https://wokwi.com/projects/399302567914368001 , where following Serial.begin() are disabled if `#define STANDALONE_TEST` is activated 😞