Skip to content

Commit

Permalink
Merge pull request #68 from kh90909/restore-ota-blink
Browse files Browse the repository at this point in the history
Restore blink during OTA update
  • Loading branch information
Erik Tylek Kettenburg authored Jul 2, 2016
2 parents c6f63b8 + fb6bc75 commit 625364c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cores/oak/OakParticle/particle_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2408,10 +2408,11 @@ bool event_loop()
{
CoAPMessageType::Enum message;
bool res;
uint32_t start = millis();
do {
res = event_loop(message);
yield();
}while(res && pClient.available() >= 2);
}while(res && pClient.available() >= 2 && (millis()-start) < 20);

return res;
}
Expand Down

0 comments on commit 625364c

Please sign in to comment.