Skip to content

Commit

Permalink
Add Response::TRANSPORT_TYPE_ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Diamond committed Sep 4, 2024
1 parent 6155f83 commit 3c3bcea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions python/fusion_engine_client/messages/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class Response(IntEnum):
NO_DATA_STORED = 8
## The device is in a state where it can't process the command.
UNAVAILABLE = 9
## A TransportType specified in the command is invalid, or unsupported on the target device.
TRANSPORT_TYPE_ERROR = 10


class MessageType(IntEnum):
Expand Down
10 changes: 8 additions & 2 deletions src/point_one/fusion_engine/messages/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ enum class Response : uint8_t {
* The device is in a state where it can't process the command.
*/
UNAVAILABLE = 9,
/**
* A TransportType specified in the command is invalid, or unsupported on the
* target device.
*/
TRANSPORT_TYPE_ERROR = 10,
};

/**
Expand Down Expand Up @@ -445,9 +450,10 @@ P1_CONSTEXPR_FUNC const char* to_string(Response val) {
return "No Data Stored";
case Response::UNAVAILABLE:
return "Device Unavailable";
default:
return "Unrecognized";
case Response::TRANSPORT_TYPE_ERROR:
return "TransportType Error";
}
return "Unrecognized";
}

/**
Expand Down

0 comments on commit 3c3bcea

Please sign in to comment.