Skip to content

Commit

Permalink
Merge pull request #14 from h3ndrik/esp32-littleendian
Browse files Browse the repository at this point in the history
fix byte order on esp32
  • Loading branch information
Links2004 authored Sep 29, 2018
2 parents 6b98e22 + be12c2b commit f12bcc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/VNC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f12bcc3

Please sign in to comment.