From 6e70d484fbc4dd1145fdf498aa868f4b60a00527 Mon Sep 17 00:00:00 2001 From: Brendan Porter Date: Fri, 17 Aug 2018 13:31:55 -0500 Subject: [PATCH] trying to fix gpio_slowdown --- matrix.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix.go b/matrix.go index 1087642..f3f9fce 100644 --- a/matrix.go +++ b/matrix.go @@ -196,7 +196,9 @@ func NewRGBLedMatrix(config *HardwareConfig, argc *int, argv *[]string) (c Matri } w, h := config.geometry() - m := C.led_matrix_create_from_options(config.toC(), &C.int(*argc), &stringsToC(*argv)) + cargc := C.int(*argc) + cargv := stringsToC(*argv) + m := C.led_matrix_create_from_options(config.toC(), &cargc, &cargv) b := C.led_matrix_create_offscreen_canvas(m) c = &RGBLedMatrix{ Config: config,