I have a console class which in the constructor uses the attach method. It was working previously with this
console.cpp
Console::Console( Serial& _serial , size_t bufferSize) : serial( _serial ) {
serial.attach( this, &Console::handleInterrupt, Serial::RxIrq);
}
But since a few days ago, this code now crashes at startup. I have fixed it by moving the attach method outside of the class for example now in the main.cpp
Serial serial(p28,p27);
Console myconsoleobject(serial,256);
main() {
myconsoleobject.attach( &console, &Console::handleInterrupt, Serial::RxIrq);
}
Has anything changed with the compiler?
I have a console class which in the constructor uses the attach method. It was working previously with this
console.cpp
But since a few days ago, this code now crashes at startup. I have fixed it by moving the attach method outside of the class for example now in the main.cpp
Has anything changed with the compiler?