InterruptableSensorBase: Fix callback function deletion (#1807)

Save the callback function into a unique_ptr member instead.
This commit is contained in:
Thad House
2019-08-04 20:25:25 -07:00
committed by Peter Johnson
parent 810e58ea85
commit 6411bd79c6
3 changed files with 17 additions and 17 deletions

View File

@@ -118,7 +118,7 @@ void* HAL_CleanInterrupts(HAL_InterruptHandle interruptHandle,
if (anInterrupt == nullptr) {
return nullptr;
}
anInterrupt->manager->enable(status);
anInterrupt->manager->disable(status);
void* param = anInterrupt->param;
return param;
}