diff --git a/nxp74hc595/74hc595.go b/nxp74hc595/74hc595.go index 99a62e4..2755330 100644 --- a/nxp74hc595/74hc595.go +++ b/nxp74hc595/74hc595.go @@ -173,7 +173,7 @@ func (gr *Group) WaitForEdge(timeout time.Duration) (int, gpio.Edge, error) { // Halt frees the group's resources and prevents it from being used again. func (gr *Group) Halt() error { - gr.pins = make([]Pin, 0) + gr.pins = nil return nil }