Skip to content

Commit 89a8b42

Browse files
authored
Merge pull request #137 from MaxMadcc/dev-2.3
Fixed UPS_Status variable being forced set to "OL", and added ALARM status flag for Huawei UPS200A device.
2 parents d555778 + ef8b069 commit 89a8b42

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WinNUT_V2/WinNUT-Client/WinNUT.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ Public Class WinNUT
695695
UPS_InputV = .Input_Voltage
696696
UPS_OutputV = .Output_Voltage
697697
UPS_Load = .Load
698-
UPS_Status = "OL"
698+
UPS_Status = .UPS_Status
699699
UPS_OutPower = .Output_Power
700700

701701
If .UPS_Status.HasFlag(UPS_States.OL) Then

WinNUT_V2/WinNUT-Client_Common/Common_Enums.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Public Enum UPS_States
115115
OVER = 1 << 10
116116
TRIM = 1 << 11
117117
BOOST = 1 << 12
118+
ALARM = 1 << 13
118119
End Enum
119120

120121
Public Enum PowerMethod

0 commit comments

Comments
 (0)