Update checksum value.
[bertos.git] / bertos / drv / lcd_rit128x96.c
index 216237d82aac25ce48e0755e9174d102c27d7478..7e538327f2a008aed1b2875e5e1ab9a65ae2d732 100644 (file)
@@ -107,9 +107,16 @@ static void lcd_dataWrite(const uint8_t *buf, size_t count)
 {
        while (count--)
        {
+#if !CONFIG_LCD_4BIT
                LCD_WRITE(*buf++);
                /* Dummy read to drain the FIFO */
-               (void)LCD_READ();
+               (void)LCD_READ;
+#else
+               LCD_WRITE_H(*buf);
+               LCD_WRITE_L(*buf++);
+               (void)LCD_READ_H;
+               (void)LCD_READ_L;
+#endif
        }
 }