From 511237f615e66c0bfa839757f89f514059323283 Mon Sep 17 00:00:00 2001 From: Lukas Malkmus Date: Sun, 10 Sep 2017 00:42:36 +0200 Subject: [PATCH] Update matrix.go --- matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix.go b/matrix.go index 3125bfd..8523004 100644 --- a/matrix.go +++ b/matrix.go @@ -147,7 +147,7 @@ func NewRGBLedMatrix(config *HardwareConfig) (c Matrix, err error) { buffer: b, leds: make([]C.uint32_t, w*h), } - if c.matrix == nil { + if m == nil { return nil, fmt.Errorf("unable to allocate memory") }