Update matrix.go

This commit is contained in:
Lukas Malkmus
2017-09-10 00:38:14 +02:00
committed by GitHub
parent e26daa0d9f
commit 407045aff7

View File

@@ -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,