Adc unregister (#4684)
* Sensor: unregister on the fly #4683 * Sensor: unregister on the fly #4683 * Adc unregister #4684 * Adc unregister #4684
This commit is contained in:
parent
6e3efed09c
commit
ea8f75a6cb
|
@ -95,6 +95,8 @@ static AdcSubscriptionEntry* findEntry() {
|
|||
efiSetPadUnused(getAdcChannelBrainPin("adc unsubscribe", entry->Channel));
|
||||
#endif // EFI_PROD_CODE
|
||||
|
||||
sensor.unregister();
|
||||
|
||||
// clear the sensor first to mark this entry not in use
|
||||
entry->Sensor = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue