Update matrix.go
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user