From 1d80aa197424ba1b0109042b69e6b828ddf99cf4 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Wed, 14 Dec 2016 12:16:24 +0000 Subject: [PATCH] correct test for HX8357D --- MCUFRIEND_kbv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MCUFRIEND_kbv.cpp b/MCUFRIEND_kbv.cpp index f096d45..57df013 100644 --- a/MCUFRIEND_kbv.cpp +++ b/MCUFRIEND_kbv.cpp @@ -211,7 +211,7 @@ uint16_t MCUFRIEND_kbv::readID(void) msb = ret32 >> 16; ret = ret32; // if (msb = 0x38 && ret == 0x8000) //unknown [xx 38 80 00] with D3 = 0x1602 - if (msb = 0x00 && ret == 0x8000) //HX8357-D [xx 00 80 00] + if (msb == 0x00 && ret == 0x8000) //HX8357-D [xx 00 80 00] return 0x8357; if (ret == 0x8552) //ST7789V: [xx 85 85 52] return 0x7789;