Minor WebServer style/unused var cleanup (#810)

This commit was merged in pull request #810.
This commit is contained in:
Earle F. Philhower, III
2022-08-29 13:25:32 -07:00
committed by GitHub
parent 486caf42a0
commit 38bcf4f956
2 changed files with 7 additions and 16 deletions
+4 -6
View File
@@ -514,9 +514,8 @@ readfile:
_uploadWriteByte(0x0A);
_uploadWriteByte((uint8_t)('-'));
_uploadWriteByte((uint8_t)('-'));
uint32_t j = 0;
while (j < i) {
_uploadWriteByte(endBuf[j++]);
for (uint32_t j = 0; j < i; j++) {
_uploadWriteByte(endBuf[j]);
}
goto readfile;
}
@@ -545,9 +544,8 @@ readfile:
_uploadWriteByte(0x0A);
_uploadWriteByte((uint8_t)('-'));
_uploadWriteByte((uint8_t)('-'));
uint32_t i = 0;
while (i < boundary.length()) {
_uploadWriteByte(endBuf[i++]);
for (uint32_t j = 0; j < boundary.length(); j++) {
_uploadWriteByte(endBuf[j]);
}
argByte = _uploadReadByte(client);
goto readfile;