diff --git a/radio/src/lcd_common.cpp b/radio/src/lcd_common.cpp index c0639df80..01de783b3 100644 --- a/radio/src/lcd_common.cpp +++ b/radio/src/lcd_common.cpp @@ -47,7 +47,6 @@ void lcd_clear() { - lcdWaitDmaEnd(); memset(displayBuf, 0, DISPLAY_BUFER_SIZE); } diff --git a/radio/src/lcd_default.cpp b/radio/src/lcd_default.cpp index 5e09f5430..f4777abb4 100644 --- a/radio/src/lcd_default.cpp +++ b/radio/src/lcd_default.cpp @@ -41,7 +41,6 @@ #if !defined(CPUARM) void lcd_putcAtt(coord_t x, uint8_t y, const unsigned char c, LcdFlags flags) { - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 8 * LCD_W + x ]; const pm_uchar *q = &font_5x7[(c-0x20)*5]; @@ -205,7 +204,6 @@ void lcd_mask(uint8_t *p, uint8_t mask, LcdFlags att) void lcd_plot(coord_t x, coord_t y, LcdFlags att) { - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 8 * LCD_W + x ]; if (p= LCD_H) return; if (x+w > LCD_W) { w = LCD_W - x; } - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 8 * LCD_W + x ]; uint8_t msk = BITMASK(y%8); while (w--) { @@ -242,7 +239,6 @@ void lcd_vlineStip(coord_t x, int8_t y, int8_t h, uint8_t pat) if (pat==DOTTED && !(y%2)) pat = ~pat; - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 8 * LCD_W + x ]; y = (y & 0x07); if (y) { @@ -281,7 +277,6 @@ void lcd_vlineStip(coord_t x, scoord_t y, scoord_t h, uint8_t pat, LcdFlags att) if (pat==DOTTED && !(y%2)) pat = ~pat; - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 8 * LCD_W + x ]; y = (y & 0x07); if (y) { @@ -308,7 +303,6 @@ void lcd_vlineStip(coord_t x, scoord_t y, scoord_t h, uint8_t pat, LcdFlags att) void lcd_invert_line(int8_t y) { - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[y * LCD_W]; for (coord_t x=0; x=LCD_W || y<0 || y>=LCD_H) return; - lcdWaitDmaEnd(); uint8_t *p = &displayBuf[ y / 2 * LCD_W + x ]; uint8_t mask = PIXEL_GREY_MASK(y, att); if (p