Skip to content

Commit

Permalink
add failure to completion status
Browse files Browse the repository at this point in the history
  • Loading branch information
technyon committed Mar 29, 2024
1 parent a69a979 commit 83a412f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/NukiLockConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ enum class CompletionStatus : uint8_t {
ClutchFailure = 0x06,
MotorPowerFailure = 0x07,
IncompleteFailure = 0x08,
Failure = 0x0b,
InvalidCode = 0xE0,
OtherError = 0xFE,
Unknown = 0xFF
Expand Down Expand Up @@ -438,6 +439,9 @@ inline void completionStatusToString(const CompletionStatus status, char* str) {
case CompletionStatus::IncompleteFailure:
strcpy(str, "incompleteFailure");
break;
case CompletionStatus::Failure:
strcpy(str, "failure");
break;
case CompletionStatus::InvalidCode:
strcpy(str, "invalidCode");
break;
Expand Down

0 comments on commit 83a412f

Please sign in to comment.