Skip to content

Commit 9de77d5

Browse files
committed
Minor fixes
1 parent f0024ff commit 9de77d5

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ void contentStatus(ChunkedPrint &chunked) {
270270
for (byte i = 0; i <= POST_REQ_LAST - POST_REQ; i++) {
271271
bool required = false;
272272
bool printVal = false;
273-
byte value;
273+
byte value = 0;
274274
if (i == 0 || i == 1) {
275275
required = true; // first byte (slave address) and second byte (function code) are required
276276
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ const uint16_t SCAN_TIMEOUT = 200; // Timeout (ms) for Modbus scan request
6767

6868
const byte MAC_START[3] = { 0x90, 0xA2, 0xDA }; // MAC range for Gheo SA
6969
#define ETH_RESET_PIN 7 // Ethernet shield reset pin (deals with power on reset issue on low quality ethernet shields)
70-
// Comment out to disable the functionality
7170
const uint16_t CHECK_ETH_INTERVAL = 2000; // Interval (ms) to check SPI connection with ethernet shield
7271
const uint16_t ETH_RESET_DELAY = 500; // Delay (ms) during Ethernet start, wait for Ethernet shield to start (reset issue on low quality ethernet shields)
7372
const uint16_t WEB_IDLE_TIMEOUT = 400; // Time (ms) from last client data after which webserver TCP socket could be disconnected, non-blocking.

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
ENABLE_EXTENDED_WEBUI and ENABLE_DHCP is set by default for Mega
2727
v7.3 2024-01-16 Bugfix Modbus RTU Request form, code comments
2828
v7.4 2024-12-16 CSS improvement, code optimization, simplify DHCP renew, better README (solution to ethernet reset issue)
29-
v7.5 2025-XX-XX Fix 404 error page
29+
v8.0 2025-03-09 Fix 404 error page
3030
*/
3131

32-
const byte VERSION[] = { 7, 5 };
32+
const byte VERSION[] = { 8, 0 };
3333

3434
#include <SPI.h>
3535
#include <Ethernet.h>
@@ -64,6 +64,8 @@ typedef struct {
6464
byte serialAttempts;
6565
} config_t;
6666

67+
#include "advanced_settings.h"
68+
6769
const config_t DEFAULT_CONFIG = {
6870
DEFAULT_STATIC_IP,
6971
DEFAULT_SUBMASK,

0 commit comments

Comments
 (0)