X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/bbebd199987581ee6f344c89bfb02237dc0ab0bd..78b18b8d9ca52abe649386d9b9bd0049e61f87d3:/src/am7xxx.c?ds=sidebyside diff --git a/src/am7xxx.c b/src/am7xxx.c index 4bf9abb..8573a59 100644 --- a/src/am7xxx.c +++ b/src/am7xxx.c @@ -1240,8 +1240,8 @@ AM7XXX_PUBLIC int am7xxx_get_device_info(am7xxx_device *dev, if (h.packet_type != AM7XXX_PACKET_TYPE_DEVINFO) { error(dev->ctx, "expected packet type: %d, got %d instead!\n", AM7XXX_PACKET_TYPE_DEVINFO, h.packet_type); - errno = ENOTSUP; - return -ENOTSUP; + errno = EINVAL; + return -EINVAL; } dev->device_info = malloc(sizeof(*dev->device_info));