Skip to content

Commit

Permalink
Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ewoudwijma committed Aug 19, 2024
1 parent 27ebd25 commit ae648b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sys/SysModWeb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ void SysModWeb::serveUpload(WebRequest *request, const String& fileName, size_t
//if sc files send command to live
#ifdef STARBASE_USERMOD_LIVE

strcpy(lastFileUpdated, filename.c_str()); //workaround
strcpy(lastFileUpdated, fileName.c_str()); //workaround

// got multiple definition error here ???
// if (filename.indexOf(".sc") > 0)
Expand All @@ -535,10 +535,10 @@ void SysModWeb::serveUpload(WebRequest *request, const String& fileName, size_t
}
}

void SysModWeb::serveUpdate(WebRequest *request, const String& filename, size_t index, byte *data, size_t len, bool final) {
void SysModWeb::serveUpdate(WebRequest *request, const String& fileName, size_t index, byte *data, size_t len, bool final) {

// curl -F 'data=@fixture1.json' 192.168.8.213/upload
// ppf("serveUpdate r:%s f:%s i:%d l:%d f:%d\n", request->url().c_str(), filename.c_str(), index, len, final);
// ppf("serveUpdate r:%s f:%s i:%d l:%d f:%d\n", request->url().c_str(), fileName.c_str(), index, len, final);

mdl->setValue("update", index/10000);
sendResponseObject(); //otherwise not send in asyn_tcp thread
Expand Down

0 comments on commit ae648b4

Please sign in to comment.