diff --git a/plc/plc.go b/plc/plc.go index 2db71b1..a826c7c 100644 --- a/plc/plc.go +++ b/plc/plc.go @@ -38,6 +38,7 @@ const ( ) // Discrete inputs +//go:generate stringer -type=input type input int const ( @@ -58,6 +59,7 @@ const ( ) // 16-bit registers +//go:generate stringer -type=register type register int const ( @@ -66,6 +68,7 @@ const ( ) // Coils +//go:generate stringer -type=coil type coil int const ( @@ -81,6 +84,7 @@ const ( ) // Bitmask for decoding fieldIoConnection into individual ArmorBlock connection statuses. +//go:generate stringer -type=armorBlock type armorBlock int const (