From 51b884c44c858aa56aae6675a2c3a8b2d882768e Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Thu, 1 Mar 2018 13:03:40 -0500 Subject: keypad support, making stuff good --- src/display_draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/display_draw.c') diff --git a/src/display_draw.c b/src/display_draw.c index 27ed796..a315bf7 100644 --- a/src/display_draw.c +++ b/src/display_draw.c @@ -92,12 +92,12 @@ void dsp_rect(int x, int y, int w, int h, uint16_t color) { dsp_set_addr(x, y, x + w - 1, y + h - 1); int countdown = w * h; + LOCK; do { - LOCK; dsp_write_data(color >> 8); dsp_write_data(color & 0xFF); - UNLOCK; } while (countdown--); + UNLOCK; } void dsp_line(int x, int y, int i, int j, uint16_t color) -- cgit v1.2.3