VividCAN: Better "Online Not Supported" Error

This commit is contained in:
Paul Hollinsky
2020-09-08 17:39:47 -04:00
parent 3f8ed840ba
commit de0c16a461
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -94,6 +94,7 @@ static constexpr const char* MESSAGE_FORMATTING = "The message was not properly
static constexpr const char* CANFD_NOT_SUPPORTED = "This device does not support CANFD.";
static constexpr const char* RTR_NOT_SUPPORTED = "RTR is not supported with CANFD.";
static constexpr const char* DEVICE_DISCONNECTED = "The device was disconnected.";
static constexpr const char* ONLINE_NOT_SUPPORTED = "This device does not support going online.";
// Transport Errors
static constexpr const char* FAILED_TO_READ = "A read operation failed.";
@@ -187,6 +188,8 @@ const char* APIEvent::DescriptionForType(Type type) {
return RTR_NOT_SUPPORTED;
case Type::DeviceDisconnected:
return DEVICE_DISCONNECTED;
case Type::OnlineNotSupported:
return ONLINE_NOT_SUPPORTED;
// Transport Errors
case Type::FailedToRead: