Skip to content

Commit

Permalink
main.cpp: fix slave not receiving modbus info
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed Nov 18, 2024
1 parent 04ca340 commit 2b97b72
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions SmartEVSE-3/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5333,12 +5333,6 @@ void setup() {
}


firmwareUpdateTimer = random(FW_UPDATE_DELAY, 0xffff);
//firmwareUpdateTimer = random(FW_UPDATE_DELAY, 120); // DINGO TODO debug max 2 minutes
// Set eModbus LogLevel to 1, to suppress possible E5 errors
MBUlogLvl = LOG_LEVEL_CRITICAL;
ConfigureModbusMode(255);
CP_ON; // CP signal ACTIVE
#else //SMARTEVSE_VERSION
uint8_t writeValue;
uint8_t readValue;
Expand Down Expand Up @@ -5596,10 +5590,22 @@ void setup() {
NULL // Task handle
);

WiFiSetup();

#if SMARTEVSE_VERSION == 3
// Set eModbus LogLevel to 1, to suppress possible E5 errors
MBUlogLvl = LOG_LEVEL_CRITICAL;
ConfigureModbusMode(255);
#endif

BacklightTimer = BACKLIGHT;
GLCD_init();

WiFiSetup();
#if SMARTEVSE_VERSION == 3
CP_ON; // CP signal ACTIVE
#endif

firmwareUpdateTimer = random(FW_UPDATE_DELAY, 0xffff);
}


Expand Down

0 comments on commit 2b97b72

Please sign in to comment.