Browse Source

Fix build on some platforms

v_master
Volodymyr Shymanskyy 8 years ago
parent
commit
9031ebd1a5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      examples/FileDownload/FileDownload.ino

+ 3
- 1
examples/FileDownload/FileDownload.ino View File

@ -50,7 +50,9 @@ void setup() {
void printPercent(uint32_t readLength, uint32_t contentLength) {
// If we know the total length
if (contentLength != -1) {
Serial.print(String("\r ") + ((100.0 * readLength) / contentLength) + "%");
Serial.print(F("\r "));
Serial.print((100.0 * readLength) / contentLength);
Serial.println('%');
} else {
Serial.println(readLength);
}


Loading…
Cancel
Save