🤔 original comparison did not work...

pull/121/head
Graeme Winter 2021-04-08 08:16:47 +01:00
rodzic 54c03d48dc
commit e1027353ab
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -95,7 +95,8 @@ mp_obj_t picoscroll_show_bitmap_1d(mp_obj_t bitmap_obj, mp_obj_t brightness_obj,
int height = PicoScroll::HEIGHT;
// this obviously shouldn't happen as the scroll is 17x7 pixels
if (height > (int) sizeof(unsigned char)) {
// would fall off end of byte if this the case
if (height > 8) {
mp_raise_msg(&mp_type_RuntimeError, INCORRECT_SIZE_MSG);
}