Skip to content

Commit 61785b2

Browse files
committed
auto numbering of HTTPUpdateError enum
1 parent cec84ed commit 61785b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Diff for: libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h

+10-10
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@
4444

4545
/// note we use HTTP client errors too so we start at 100
4646
enum HTTPUpdateError {
47-
HTTP_UE_TOO_LESS_SPACE = (-100),
48-
HTTP_UE_SERVER_NOT_REPORT_SIZE = (-101),
49-
HTTP_UE_SERVER_FILE_NOT_FOUND = (-102),
50-
HTTP_UE_SERVER_FORBIDDEN = (-103),
51-
HTTP_UE_SERVER_WRONG_HTTP_CODE = (-104),
52-
HTTP_UE_SERVER_FAULTY_MD5 = (-105),
53-
HTTP_UE_BIN_VERIFY_HEADER_FAILED = (-106),
54-
HTTP_UE_BIN_FOR_WRONG_FLASH = (-107),
55-
HTTP_UE_SERVER_UNAUTHORIZED = (-108),
56-
HTTP_UE_SERVER_NOT_REPORT_VERSION = (-109), // server did not respond with a firmware version
47+
HTTP_UE_SERVER_NOT_REPORT_VERSION = -109, // server did not respond with a firmware version
48+
HTTP_UE_SERVER_UNAUTHORIZED, // -108
49+
HTTP_UE_BIN_FOR_WRONG_FLASH, // -107
50+
HTTP_UE_BIN_VERIFY_HEADER_FAILED, // -106
51+
HTTP_UE_SERVER_FAULTY_MD5, // -105
52+
HTTP_UE_SERVER_WRONG_HTTP_CODE, // -104
53+
HTTP_UE_SERVER_FORBIDDEN, // -103
54+
HTTP_UE_SERVER_FILE_NOT_FOUND, // -102
55+
HTTP_UE_SERVER_NOT_REPORT_SIZE, // -101
56+
HTTP_UE_TOO_LESS_SPACE // -100
5757
};
5858

5959
enum HTTPUpdateResult {

0 commit comments

Comments
 (0)