9 years, 6 months ago.

DigialOut Destructor does not reset pin

My understanding is that the C++ classes (e.g. DigialOut) should reset the port to the default state when the destructor is being called. This is not the case, I feel it is a bug because the encapsulation of devices via mbed should also restore the default state when a class is being destroyed.

Regards Helmut

Your question assumes that you know that a destructor has been called. My understanding is that the destructor releases the memory that was being used. You may need to reset all port registers to their default states manually.

posted by David Fletcher 04 Jun 2015

1 Answer

9 years, 6 months ago.

Helmut,

I think the best place to report issues with the mbed library is https://github.com/mbedmicro/mbed in the issues sections.

Thanks

Steve

Thanks

posted by Helmut Tschemernjak 04 Jun 2015