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:
rusefillc 2022-10-20 09:33:27 -04:00 committed by GitHub
parent 6e3efed09c
commit ea8f75a6cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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;