... | ... |
@@ -39,8 +39,10 @@ const char *hal_get_radio_version_string(void) |
39 | 39 |
|
40 | 40 |
void hal_lcd_set_pixel(uint8_t x, uint8_t y, uint8_t color) |
41 | 41 |
{ |
42 |
- x %= 96; |
|
43 |
- y %= 96; |
|
42 |
+ if (x > 95) |
|
43 |
+ x = 95; |
|
44 |
+ if (y > 95) |
|
45 |
+ y = 95; |
|
44 | 46 |
mw_lcd_draw_pixel(x, y, color ? LCD_BLACK : LCD_WHITE); |
45 | 47 |
} |
46 | 48 |
|