mirror of https://git.sr.ht/~michalr/go-satel
change types
This commit is contained in:
parent
93a305df5d
commit
a97e64e372
|
@ -69,10 +69,22 @@ func (c ChangeType) String() string {
|
||||||
"partition-fire-alarm",
|
"partition-fire-alarm",
|
||||||
"partition-alarm-memory",
|
"partition-alarm-memory",
|
||||||
"partition-fire-alarm-memory",
|
"partition-fire-alarm-memory",
|
||||||
"output"}
|
"output",
|
||||||
if int(c) < len(strings) {
|
"doors-opened",
|
||||||
|
"doors-opened-long",
|
||||||
|
"status-bit",
|
||||||
|
"trouble-part-1",
|
||||||
|
"trouble-part-2",
|
||||||
|
"trouble-part-3",
|
||||||
|
"trouble-part-4",
|
||||||
|
"trouble-part-5",
|
||||||
|
"trouble-memory-part-1",
|
||||||
|
"trouble-memory-part-2",
|
||||||
|
"trouble-memory-part-3",
|
||||||
|
"trouble-memory-part-4",
|
||||||
|
"trouble-memory-part-5",
|
||||||
|
"partition-with-violated-zones",
|
||||||
|
"zone-isolate",
|
||||||
|
}
|
||||||
return strings[c]
|
return strings[c]
|
||||||
} else {
|
|
||||||
return "unknown"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue