diff --git a/src/libhidpp/hidpp20/Error.cpp b/src/libhidpp/hidpp20/Error.cpp index 5340637..98958ad 100644 --- a/src/libhidpp/hidpp20/Error.cpp +++ b/src/libhidpp/hidpp20/Error.cpp @@ -45,8 +45,8 @@ const char *Error::what () const noexcept return "Out of range"; case HWError: return "Hardware error"; - case LogitechInternal: - return "Logitech internal"; + case NotAllowed: + return "Not allowed"; case InvalidFeatureIndex: return "Invalid feature index"; case InvalidFunctionID: diff --git a/src/libhidpp/hidpp20/Error.h b/src/libhidpp/hidpp20/Error.h index 16b7e18..5c52c92 100644 --- a/src/libhidpp/hidpp20/Error.h +++ b/src/libhidpp/hidpp20/Error.h @@ -36,7 +36,8 @@ class Error: public std::exception InvalidArgument = 2, OutOfRange = 3, HWError = 4, - LogitechInternal = 5, + NotAllowed = 5, + LogitechInternal [[deprecated]] = NotAllowed, InvalidFeatureIndex = 6, InvalidFunctionID = 7, Busy = 8,