Skip to content

Commit 90043ff

Browse files
authored
Merge pull request #4 from sparkfun/release_candidate
Release v1.1 - Add binaries
2 parents fb5d3e7 + 6d7e510 commit 90043ff

File tree

9 files changed

+5
-2
lines changed

9 files changed

+5
-2
lines changed
Binary file not shown.
Binary file not shown.

Firmware/RTK_Surveyor/menuFirmware.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void updateFromSD(char *firmwareFileName)
111111
return;
112112
}
113113

114-
Serial.print(F("Moving file to OTA section"));
114+
Serial.println(F("Moving file to OTA section"));
115115
Serial.print(F("Bytes to write: "));
116116
Serial.print(updateSize);
117117

@@ -136,7 +136,10 @@ void updateFromSD(char *firmwareFileName)
136136
delay(10); //Give RTOS time
137137

138138
if (Update.write(dataArray, bytesToWrite) != bytesToWrite)
139-
Serial.println(F("Write failed"));
139+
{
140+
Serial.println(F("\nWrite failed. Binary may be incorrectly aligned."));
141+
break;
142+
}
140143
else
141144
bytesWritten += bytesToWrite;
142145
delay(10); //Give RTOS time
Binary file not shown.

0 commit comments

Comments
 (0)