Skip to content

Commit

Permalink
Change method of software reboot to one which seems to be more reliab…
Browse files Browse the repository at this point in the history
…le and also includes automatic retries.
  • Loading branch information
follower committed Dec 13, 2010
1 parent dd01d37 commit 33e7f0b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/WiFly/WiFlyDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,10 @@ void WiFlyDevice::reboot() {

DEBUG_LOG(1, "Entered reboot");

switchToCommandMode();

uart.println("reboot");

waitForResponse("*Reboot*");

// TODO: Extract information from boot? e.g. version and MAC address

waitForResponse("*READY*");
if (!softwareReboot()) {
DEBUG_LOG(1, "Failed to reboot. Halting.");
while (1) {}; // Hang. TODO: Handle differently?
}
}


Expand Down

0 comments on commit 33e7f0b

Please sign in to comment.