Skip to content

Commit

Permalink
tuya: always run the discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Feb 26, 2021
1 parent 65c8db7 commit 2a08ccb
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions code/espurna/tuya.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,9 @@ namespace tuya {
setupSwitches();
}

if (!configDone) {
DEBUG_MSG_P(PSTR("[TUYA] Starting discovery\n"));
state = State::QUERY_PRODUCT;
return;
}

state = State::IDLE;
DEBUG_MSG_P(PSTR("[TUYA] Starting discovery\n"));
state = State::QUERY_PRODUCT;
return;
}

sendWiFiStatus();
Expand Down

0 comments on commit 2a08ccb

Please sign in to comment.