Skip to content

Commit 4fc05ad

Browse files
committed
Allow config override from platformio.ini
1 parent 2db3a41 commit 4fc05ad

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/VNC_config.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@
2727
#ifndef VNC_CONFIG_H_
2828
#define VNC_CONFIG_H_
2929

30+
#ifndef VNC_USER_SETUP_LOADED
31+
3032
/// Display
3133
#define VNC_ILI9341
3234
#define VNC_ST7789
3335

3436
// RA8875 not fully implemented
3537
//#define VNC_RA8875
3638

37-
3839
/// TCP layer
3940
#define USE_ARDUINO_TCP
40-
#define VNC_TCP_TIMEOUT 5000
4141

4242
/// VNC Encodes
4343
#define VNC_RRE
@@ -62,6 +62,12 @@
6262
/// Memory Options
6363
//#define VNC_SAVE_MEMORY
6464

65+
#endif /* VNC_USER_SETUP_LOADED */
66+
67+
#ifndef VNC_TCP_TIMEOUT
68+
#define VNC_TCP_TIMEOUT 5000
69+
#endif
70+
6571
#ifndef VNC_SAVE_MEMORY
6672
// 15KB raw input buffer
6773
#define VNC_RAW_BUFFER 15360

0 commit comments

Comments
 (0)