X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/bbebd199987581ee6f344c89bfb02237dc0ab0bd..2f9894ec66b5b4d67db7670dcd8bd721a16b4e43:/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));