From a97e64e3723f61168e28c8ef39deff36ca2aa911 Mon Sep 17 00:00:00 2001 From: Przemko Date: Fri, 19 Nov 2021 20:07:46 +0100 Subject: [PATCH] change types --- change_type.go | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/change_type.go b/change_type.go index 3016888..8e2ff55 100644 --- a/change_type.go +++ b/change_type.go @@ -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) { - return strings[c] - } else { - return "unknown" + "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] }