From 407045aff74d8763894afd3694ad1e9d1b92e72d Mon Sep 17 00:00:00 2001 From: Lukas Malkmus Date: Sun, 10 Sep 2017 00:38:14 +0200 Subject: [PATCH] Update matrix.go --- matrix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix.go b/matrix.go index 426d72f..65d97b3 100644 --- a/matrix.go +++ b/matrix.go @@ -138,9 +138,9 @@ func NewRGBLedMatrix(config *HardwareConfig) (m Matrix, err error) { } w, h := config.geometry() - m = C.led_matrix_create_from_options(config.toC(), nil, nil) + m := C.led_matrix_create_from_options(config.toC(), nil, nil) b := C.led_matrix_create_offscreen_canvas(m) - c := &RGBLedMatrix{ + c = &RGBLedMatrix{ Config: config, width: w, height: h, matrix: m,