Skip to content

Commit 6a26662

Browse files
committed
Assigning defined values to the various error types in order to have defined numbers
1 parent aa454bb commit 6a26662

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/utility/ota/OTALogic.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ enum class OTAState
4141
Init, Idle, StartDownload, WaitForHeader, HeaderReceived, WaitForBinary, BinaryReceived, Verify, Reset, Error
4242
};
4343

44-
enum class OTAError
44+
enum class OTAError : int
4545
{
46-
None, StorageInitFailed, StorageOpenFailed, StorageWriteFailed, ChecksumMismatch
46+
None = 0,
47+
StorageInitFailed = 1,
48+
StorageOpenFailed = 2,
49+
StorageWriteFailed = 3,
50+
ChecksumMismatch = 4
4751
};
4852

4953
/******************************************************************************

0 commit comments

Comments
 (0)