|
@@ -71,20 +71,17 @@ bool GithubClient::download(const String& path, const String& fsPath) {
|
|
|
String tmpFile = fsPath + ".download_tmp";
|
|
String tmpFile = fsPath + ".download_tmp";
|
|
|
File f = SPIFFS.open(tmpFile.c_str(), "w");
|
|
File f = SPIFFS.open(tmpFile.c_str(), "w");
|
|
|
|
|
|
|
|
- printf("1.");
|
|
|
|
|
-
|
|
|
|
|
if (!f) {
|
|
if (!f) {
|
|
|
Serial.print(F("ERROR - could not open file for downloading: "));
|
|
Serial.print(F("ERROR - could not open file for downloading: "));
|
|
|
Serial.println(fsPath);
|
|
Serial.println(fsPath);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- printf("2.");
|
|
|
|
|
|
|
+ printf(".");
|
|
|
|
|
|
|
|
if (!download(path, f)) {
|
|
if (!download(path, f)) {
|
|
|
f.close();
|
|
f.close();
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- printf("3.");
|
|
|
|
|
|
|
|
|
|
f.flush();
|
|
f.flush();
|
|
|
f.close();
|
|
f.close();
|