mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 07:26:38 +02:00
* fix: random crashes #15
-> don't use delay() on ESP while Wifi connection is established!?
This commit is contained in:
parent
1300f0a19e
commit
b3bdf2811e
2 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ void app::loop(void) {
|
|||
if(NULL != inv) {
|
||||
mSys->Radio.sendTimePacket(inv->radioId.u64, mTimestamp);
|
||||
yield();
|
||||
delay(100);
|
||||
//delay(100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ void app::loop(void) {
|
|||
snprintf(topic, 30, "%s/ch%d/%s", iv->name, iv->assign[i].ch, fields[iv->assign[i].fieldId]);
|
||||
snprintf(val, 10, "%.3f", mSys->getValue(iv, i));
|
||||
mMqtt.sendMsg(topic, val);
|
||||
delay(20);
|
||||
//delay(20);
|
||||
yield();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue