Skip to content

Commit 54d6826

Browse files
committed
set functionality based on Arduino board
1 parent 7e80571 commit 54d6826

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

arduino-modbus-rtu-tcp-gateway/advanced_settings.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
// #define ENABLE_DHCP // Enable DHCP (Auto IP settings), consumes a lot of FLASH memory
1010

11+
#if defined(ARDUINO_AVR_UNO)
12+
#define ENABLE_EXTENDED_WEBUI
13+
#elif defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560)
14+
#define ENABLE_EXTENDED_WEBUI
15+
#define ENABLE_DHCP
16+
#endif
1117

1218
/****** DEFAULT CONFIGURATION ******/
1319
/*

arduino-modbus-rtu-tcp-gateway/arduino-modbus-rtu-tcp-gateway.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
v7.0 2023-07-21 Manual MAC, better data types
2424
v7.1 2023-08-25 Simplify EEPROM read and write, Tools page
2525
v7.2 2023-10-20 Disable DHCP renewal fallback, better advanced_settings.h layout
26+
ENABLE_EXTENDED_WEBUI is set by default for Uno and Mega, ENABLE_DHCP is set by default for Mega
2627
*/
2728

2829
const byte VERSION[] = { 7, 2 };

0 commit comments

Comments
 (0)