From b311277077e9ef7ee43634c5125abbbc48cd9c25 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Mon, 1 May 2017 09:36:10 +0100 Subject: [PATCH] fix HX8347 readGRAM --- MCUFRIEND_kbv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCUFRIEND_kbv.cpp b/MCUFRIEND_kbv.cpp index ceb5f32..1800198 100644 --- a/MCUFRIEND_kbv.cpp +++ b/MCUFRIEND_kbv.cpp @@ -254,7 +254,7 @@ int16_t MCUFRIEND_kbv::readGRAM(int16_t x, int16_t y, uint16_t * block, int16_t uint16_t ret, dummy, _MR = _MW; int16_t n = w * h, row = 0, col = 0; uint8_t r, g, b, tmp; - if (_lcd_capable & MIPI_DCS_REV1) + if (!is8347 && _lcd_capable & MIPI_DCS_REV1) _MR = 0x2E; setAddrWindow(x, y, x + w - 1, y + h - 1); while (n > 0) {