From be12c2b355aec08a60546888b746714ea0bb9e86 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Tue, 25 Sep 2018 23:55:22 +0200 Subject: [PATCH] fix byte order on esp32 --- src/VNC.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/VNC.cpp b/src/VNC.cpp index 4228e77..155ac19 100644 --- a/src/VNC.cpp +++ b/src/VNC.cpp @@ -103,7 +103,11 @@ void arduinoVNC::begin(char *_host, uint16_t _port, bool _onlyFullUpdate) { opt.client.bpp = 16; opt.client.depth = 16; +#ifdef ESP32 + opt.client.bigendian = 0; +#else opt.client.bigendian = 1; +#endif opt.client.truecolour = 1; opt.client.redmax = 31;