Skip to content

Commit d15b4f6

Browse files
authored
Fix deadlock in stIDUpdate() (#490)
1 parent a62d9d7 commit d15b4f6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libraries/MySensors/core/MyTransport.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,9 @@ void stIDUpdate() {
123123
debug(PSTR("node ID=%d\n"), _nc.nodeId);
124124
setIndication(INDICATION_GOT_NODEID);
125125
// check uplink
126-
transportSwitchSM(stUplink);
127-
126+
transportSwitchSM(stUplink);
128127
}
129-
if (transportTimeInState() > STATE_TIMEOUT) {
128+
else if (transportTimeInState() > STATE_TIMEOUT) {
130129
if (_transportSM.retries < STATE_RETRIES) {
131130
// re-enter if retries left
132131
transportSwitchSM(stID);

0 commit comments

Comments
 (0)