Skip to content

Commit

Permalink
Sensor: unregister on the fly #4683
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Oct 20, 2022
1 parent ac8557d commit 0924098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/hw_layer/adc/adc_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static AdcSubscriptionEntry* findEntry() {
efiSetPadUnused(getAdcChannelBrainPin("adc unsubscribe", entry->Channel));
#endif // EFI_PROD_CODE

if (entry->Sensor != nullptr) {
if (entry->Sensor) {
entry->Sensor->unregister();
}

Expand Down

0 comments on commit 0924098

Please sign in to comment.