Skip to content

Commit 1930acc

Browse files
committed
Reorder and rename OTA error codes
1 parent 31220c2 commit 1930acc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Diff for: src/Arduino_ESP32_OTA.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ class Arduino_ESP32_OTA
6363
None = 0,
6464
NoOtaStorage = -2,
6565
OtaStorageInit = -3,
66-
OtaStorageEnd = -4,
67-
UrlParseError = -5,
68-
ServerConnectError = -6,
69-
HttpHeaderError = -7,
66+
OtaHeaderLength = -5,
67+
OtaHeaderCrc = -6,
68+
OtaHeaterMagicNumber = -7,
7069
ParseHttpHeader = -8,
71-
OtaHeaderLength = -9,
72-
OtaHeaderCrc = -10,
73-
OtaHeaterMagicNumber = -11,
70+
UrlParse = -9,
71+
ServerConnect = -10,
72+
HttpHeader = -11,
7473
OtaDownload = -12,
7574
OtaHeaderTimeout = -13,
76-
HttpResponse = -14
75+
HttpResponse = -14,
76+
OtaStorageEnd = -15,
7777
};
7878

7979
Arduino_ESP32_OTA();

0 commit comments

Comments
 (0)