Update matrix.go

pull/5/head
Lukas Malkmus 7 years ago committed by GitHub
parent e26daa0d9f
commit 407045aff7

@ -138,9 +138,9 @@ func NewRGBLedMatrix(config *HardwareConfig) (m Matrix, err error) {
} }
w, h := config.geometry() 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) b := C.led_matrix_create_offscreen_canvas(m)
c := &RGBLedMatrix{ c = &RGBLedMatrix{
Config: config, Config: config,
width: w, height: h, width: w, height: h,
matrix: m, matrix: m,

Loading…
Cancel
Save