diff --git a/enervent-ctrl-go/coils.csv b/enervent-ctrl-go/coils.csv index c3a42ab..452f605 100644 --- a/enervent-ctrl-go/coils.csv +++ b/enervent-ctrl-go/coils.csv @@ -1,7 +1,7 @@ 0;COIL_STOP;Stop the machine 1;COIL_AWAY;Set the machine to away mode 2;COIL_AWAYL;Set the machine to away long mode -3;-;- +3;COIL_OVERPR;Set the machine to overpressure mode 4;-;- 5;-;- 6;COIL_MAX_H;Force the machine to heat at maximum effect. diff --git a/enervent-ctrl-go/pingvinKL/pingvinKL.go b/enervent-ctrl-go/pingvinKL/pingvinKL.go index fd005f1..ab92fb7 100644 --- a/enervent-ctrl-go/pingvinKL/pingvinKL.go +++ b/enervent-ctrl-go/pingvinKL/pingvinKL.go @@ -290,9 +290,8 @@ func (p *PingvinKL) populateStatus() { func parseStatus(value int) string { val := int16(value) pingvinStatuses := []string{ - "Normal", - "Max heating", "Max cooling", + "Max heating", "Stopped by alarm", "Stopped by user", "Away", @@ -308,7 +307,7 @@ func parseStatus(value int) string { "Summer night cooling", "HRC defrost", } - for i := 1; i <= 16; i++ { + for i := 0; i < 15; i++ { if val>>i&0x1 == 1 { return pingvinStatuses[i] }