diff options
Diffstat (limited to 'implementation/utility/include/utility.hpp')
-rw-r--r-- | implementation/utility/include/utility.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/implementation/utility/include/utility.hpp b/implementation/utility/include/utility.hpp index db54eb9..359bc7c 100644 --- a/implementation/utility/include/utility.hpp +++ b/implementation/utility/include/utility.hpp @@ -36,9 +36,7 @@ public: } static inline bool is_request(message_type_e _type) { - return ((_type < message_type_e::MT_NOTIFICATION) - || (_type >= message_type_e::MT_REQUEST_ACK - && _type <= message_type_e::MT_REQUEST_NO_RETURN_ACK)); + return (_type < message_type_e::MT_NOTIFICATION); } static inline bool is_request_no_return(std::shared_ptr<message> _message) { @@ -131,7 +129,9 @@ public: || _code == return_code_e::E_WRONG_PROTOCOL_VERSION || _code == return_code_e::E_WRONG_INTERFACE_VERSION || _code == return_code_e::E_MALFORMED_MESSAGE - || _code == return_code_e::E_WRONG_MESSAGE_TYPE); + || _code == return_code_e::E_WRONG_MESSAGE_TYPE + || (static_cast<std::uint8_t>(_code) >= 0x20 + && static_cast<std::uint8_t>(_code) <= 0x5E)); } private: |