File tree Expand file tree Collapse file tree
OpenHardwareMonitorLib/Hardware/Battery Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,14 +139,6 @@ public Battery
139139
140140 public float ? Voltage => _voltage . Value ;
141141
142- private void ActivateSensorIfValueNotNull ( ISensor sensor )
143- {
144- if ( sensor . Value != null )
145- ActivateSensor ( sensor ) ;
146- else
147- DeactivateSensor ( sensor ) ;
148- }
149-
150142 public override void Update ( )
151143 {
152144 Kernel32 . BATTERY_WAIT_STATUS bws = default ;
@@ -270,15 +262,6 @@ public override void Update()
270262 {
271263 _cycleCount . Value = null ;
272264 }
273-
274- ActivateSensorIfValueNotNull ( _remainingCapacity ) ;
275- ActivateSensorIfValueNotNull ( _chargeLevel ) ;
276- ActivateSensorIfValueNotNull ( _voltage ) ;
277- ActivateSensorIfValueNotNull ( _chargeDischargeCurrent ) ;
278- ActivateSensorIfValueNotNull ( _chargeDischargeRate ) ;
279- ActivateSensorIfValueNotNull ( _remainingTime ) ;
280- ActivateSensorIfValueNotNull ( _temperature ) ;
281- ActivateSensorIfValueNotNull ( _cycleCount ) ;
282265 }
283266
284267 public override void Close ( )
You can’t perform that action at this time.
0 commit comments