diff --git a/hidapi/hidapi.h b/hidapi/hidapi.h index 75c624549..c101d55b8 100644 --- a/hidapi/hidapi.h +++ b/hidapi/hidapi.h @@ -379,14 +379,10 @@ extern "C" { This function is intended for logging/debugging purposes. - This function guarantees to never return NULL. + This function guarantees to never return NULL for a valid @ref dev. If there was no error in the last call to hid_read/hid_read_error - the returned string clearly indicates that. - Any HIDAPI function that can explicitly indicate an execution failure - (e.g. by an error code, or by returning NULL) - may set the error string, - to be returned by this function. - Strings returned from hid_read_error() must not be freed by the user, i.e. owned by HIDAPI library. Device-specific error string may remain allocated at most until hid_close() is called.