microbit: fix for #73
The destructor for MicroBitButton didn't take into account the fact that an instance can be destructed after registering a callback. This would then result in a HardFault if an instance was destructed. A clear repro case was registering a Touch input on a pin (abstracted as a button) and swapping to a DigitalIn.master
parent
d2df88417b
commit
8d3f3affbd
Loading…
Reference in new issue