diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-02-03 12:08:59 +0200 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2020-02-03 12:08:59 +0200 |
| commit | c5bf753ea3fcf332d1dac399595be3e73540c348 (patch) | |
| tree | 0b2d877a9615570ee4ecc06665e1f3ed772f771f /Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | |
| parent | 17c6006c870158b1f7cbcc193b083634ed3d3add (diff) | |
| parent | 6d9c6d87f29a93426cf09a6f486f006a6d7c1f2b (diff) | |
| download | Tango-c5bf753ea3fcf332d1dac399595be3e73540c348.tar.gz Tango-c5bf753ea3fcf332d1dac399595be3e73540c348.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c index 35f336627..8aabafd2e 100644 --- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c +++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c @@ -102,14 +102,15 @@ uint32_t FileUploadRequestFunc(MessageContainer* requestContainer) CommRxTaskHandle = Task_self(); Task_setPri(CommRxTaskHandle, 3); // Report("Task_setPri", __FILE__, __LINE__, 4, RpWarning, (int)CommRxTaskHandle, 0); - Report("FileUploadRequestFunc 2", __FILE__, __LINE__, msec_millisecondCounter, RpWarning, (int)0, 0); + //Report("FileUploadRequestFunc 2", __FILE__, __LINE__, msec_millisecondCounter, RpWarning, (int)0, 0); Fresult = f_open(UploadFileHandle,request->path,FA_READ | FA_WRITE | FA_OPEN_ALWAYS | FA_CREATE_ALWAYS); if (Fresult == FR_OK) { - Report("FileUploadRequestFunc 3", __FILE__, __LINE__, msec_millisecondCounter, RpWarning, (int)0, 0); + usnprintf(ErrorMsg, 100, "file upload request %s %d",request->path,request->length); + + Report(ErrorMsg, __FILE__, __LINE__, request->length, RpWarning, (int)MAX_CHUNK_LENGTH, 0); FileLength = request->length; FileReceivedLength = 0; - REPORT_MSG (FileLength,"file upload request"); response.has_maxchunklength = true; response.maxchunklength = MAX_CHUNK_LENGTH; strcpy(FileHandleChar, "1234"); |
