Update shared-bindings/rgbmatrix/RGBMatrix.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
parent
e4b9c16891
commit
e477d27be3
|
@ -214,7 +214,7 @@ STATIC mp_obj_t rgbmatrix_rgbmatrix_make_new(const mp_obj_type_t *type, size_t n
|
|||
}
|
||||
}
|
||||
|
||||
if (args[ARG_width] <= 0) {
|
||||
if (args[ARG_width].u_int <= 0) {
|
||||
mp_raise_ValueError(translate("width must be greater than zero"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue