Skip to content

Commit 43ac206

Browse files
committed
Removing unused variable
User reports that an OverflowException was occurring at line 587, where the `UPS_BattCh` double variable is cast to an Integer. It's not used for anything, so perhaps removing it will solve the issue.
1 parent 0920799 commit 43ac206

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

WinNUT_V2/WinNUT-Client/WinNUT.vb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ Public Class WinNUT
584584
End Sub
585585

586586
Private Sub Event_UpdateBatteryState(Optional Reason As String = Nothing) Handles Me.UpdateBatteryState
587-
Static Dim Old_Battery_Value As Integer = UPS_BattCh
588587
Dim Status As String = "Unknown"
589588
Select Case Reason
590589
Case Nothing, "Deconnected", "Lost Connect"
@@ -606,7 +605,6 @@ Public Class WinNUT
606605
End If
607606
End If
608607
End Select
609-
Old_Battery_Value = UPS_BattCh
610608
LogFile.LogTracing("Battery Status => " & Status, LogLvl.LOG_DEBUG, Me)
611609
End Sub
612610

0 commit comments

Comments
 (0)