mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Add transfer error codes
Add transfer error codes related to device file type
This commit is contained in:
parent
5e87bbecfc
commit
c624ac7044
@ -817,8 +817,8 @@ ESP8266WebServer *Webserver;
|
||||
struct WEB {
|
||||
String chunk_buffer = ""; // Could be max 2 * CHUNKED_BUFFER_SIZE
|
||||
uint16_t upload_progress_dot_count;
|
||||
uint16_t upload_error = 0;
|
||||
uint8_t state = HTTP_OFF;
|
||||
uint8_t upload_error = 0;
|
||||
uint8_t upload_file_type;
|
||||
uint8_t config_block_count = 0;
|
||||
uint8_t config_xor_on = 0;
|
||||
@ -2946,8 +2946,8 @@ void HandleUploadLoop(void)
|
||||
}
|
||||
#endif // USE_ZIGBEE_EZSP
|
||||
if (error != 0) {
|
||||
AddLog_P(LOG_LEVEL_DEBUG, PSTR(D_LOG_UPLOAD "Transfer error %d"), error);
|
||||
Web.upload_error = 8; // File invalid
|
||||
// AddLog_P(LOG_LEVEL_DEBUG, PSTR(D_LOG_UPLOAD "Transfer error %d"), error);
|
||||
Web.upload_error = error + (100 * Web.upload_file_type); // Add offset to discriminate transfer errors
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user