sensortest: modify errno type when api not support
@@ -277,7 +277,7 @@ int main(int argc, FAR char *argv[])
if (ret < 0)
{
ret = -errno;
- if (ret != -ENOTTY)
+ if (ret != -ENOTSUP)
{
printf("Failed to set interval for sensor:%s, ret:%s\n",
devname, strerror(errno));
@@ -289,7 +289,7 @@ int main(int argc, FAR char *argv[])
if (ret < 0)
{
ret = -errno;
- if (ret != -ENOTTY)
+ if (ret != -ENOTSUP)
{
printf("Failed to batch for sensor:%s, ret:%s\n",
devname, strerror(errno));
@@ -301,7 +301,7 @@ int main(int argc, FAR char *argv[])
if (ret < 0)
{
ret = -errno;
- if (ret != -ENOTTY)
+ if (ret != -ENOTSUP)
{
printf("Failed to enable sensor:%s, ret:%s\n",
devname, strerror(errno));
