1
0
Fork 0

change types

This commit is contained in:
Przemko 2021-11-19 20:07:46 +01:00
parent 93a305df5d
commit a97e64e372
1 changed files with 17 additions and 5 deletions

View File

@ -69,10 +69,22 @@ func (c ChangeType) String() string {
"partition-fire-alarm",
"partition-alarm-memory",
"partition-fire-alarm-memory",
"output"}
if int(c) < len(strings) {
"output",
"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]
} else {
return "unknown"
}
}