Update matrix.go

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

@ -122,7 +122,7 @@ type RGBLedMatrix struct {
const MatrixEmulatorENV = "MATRIX_EMULATOR" const MatrixEmulatorENV = "MATRIX_EMULATOR"
// NewRGBLedMatrix returns a new matrix using the given size and config // NewRGBLedMatrix returns a new matrix using the given size and config
func NewRGBLedMatrix(config *HardwareConfig) (m Matrix, err error) { func NewRGBLedMatrix(config *HardwareConfig) (c Matrix, err error) {
defer func() { defer func() {
if r := recover(); r != nil { if r := recover(); r != nil {
var ok bool var ok bool

Loading…
Cancel
Save