Fix configuration restore regression from 5.13.1a

5.13.1a
 * Fix configuration restore regression from 5.13.1
This commit is contained in:
Theo Arends 2018-05-06 18:43:34 +02:00
parent b9acfe000c
commit 8ff8e6e69b
1 changed files with 0 additions and 1 deletions

View File

@ -1360,7 +1360,6 @@ void HandleUploadLoop()
if (upload_file_type) { // config if (upload_file_type) { // config
if (!upload_error) { if (!upload_error) {
if (upload.currentSize > (sizeof(Settings) - (config_block_count * HTTP_UPLOAD_BUFLEN))) { if (upload.currentSize > (sizeof(Settings) - (config_block_count * HTTP_UPLOAD_BUFLEN))) {
if (config_block_count) { SettingsDefault(); }
upload_error = 9; upload_error = 9;
return; return;
} }