SoftwareSerial crash
Opened this issue · 1 comments
ElektroBOXua commented
JbdBms::JbdBms(int rx, int tx){
SoftwareSerial mySerial(rx, tx);
m_port = &mySerial;
m_hwserial = false;
static_cast<SoftwareSerial*>(m_port)->begin(9600);
}
SoftwareSerial mySerial(rx, tx);
SoftwareSerial instance gets destroyed after function exit. Make it static.
rakhmaevao commented
@ElectroBoxUA, please make a pull request as I don't have BMS with me.