Skip to content

Commit 03a0b0b

Browse files
author
dingo35
committed
main.cpp: only call SendConfig once
1 parent 190b86b commit 03a0b0b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

SmartEVSE-3/src/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,6 +2833,8 @@ void Handle_ESP32_Message(char *SerialBuf, uint8_t *CommState) {
28332833
if (ret != NULL) {
28342834
unsigned long WCHRunningVersion = atoi(ret+strlen(token));
28352835
_LOG_V("version %lu received\n", WCHRunningVersion);
2836+
SendConfigToCH32();
2837+
Serial1.printf("@Initialized:1\n"); // this finalizes the Config setup phase
28362838
*CommState = COMM_CONFIG_SET;
28372839
return;
28382840
}
@@ -3208,9 +3210,6 @@ void Timer10ms_singlerun(void) {
32083210

32093211
case COMM_CONFIG_SET: // Set mainboard configuration
32103212
CommTimeout = 10;
3211-
3212-
SendConfigToCH32();
3213-
Serial1.printf("@Initialized:1\n"); // this finalizes the Config setup phase
32143213
break;
32153214

32163215
case COMM_STATUS_REQ: // Ready to receive status from mainboard

0 commit comments

Comments
 (0)