hmc5883: cleanup device interface on destruction

This commit is contained in:
Daniel Agar 2020-08-13 11:54:12 -04:00 committed by Beat Küng
parent 0c91a29c3f
commit f8241f144c
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ HMC5883::~HMC5883()
perf_free(_comms_errors);
perf_free(_range_errors);
perf_free(_conf_errors);
delete _interface;
}
int HMC5883::init()