Update matrix.go

pull/5/head
Lukas Malkmus 7 years ago committed by GitHub
parent cf3bb1dea8
commit 511237f615

@ -147,7 +147,7 @@ func NewRGBLedMatrix(config *HardwareConfig) (c Matrix, err error) {
buffer: b, buffer: b,
leds: make([]C.uint32_t, w*h), leds: make([]C.uint32_t, w*h),
} }
if c.matrix == nil { if m == nil {
return nil, fmt.Errorf("unable to allocate memory") return nil, fmt.Errorf("unable to allocate memory")
} }

Loading…
Cancel
Save