Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion drivers/AnalogOut.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ class AnalogOut {

virtual ~AnalogOut()
{
// Do nothing
/** Deinitialize pin configuration.
*/
analogout_free(&_dac);
}

protected:
Expand Down
1 change: 0 additions & 1 deletion hal/analogout_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ void analogout_init(dac_t *obj, PinName pin);

/** Release the analogout object
*
* Note: This is not currently used in the mbed-drivers
* @param obj The analogout object
*/
void analogout_free(dac_t *obj);
Expand Down