diff --git a/tools/spark_fp.c b/tools/spark_fp.c index 70a6689..02e82d0 100644 --- a/tools/spark_fp.c +++ b/tools/spark_fp.c @@ -232,10 +232,10 @@ int main(int argc, char **argv) ret = ioctl(fd, VFDSETPOWERONTIME, &t); break; case 'P': + ret = ioctl(fd, VFDPOWEROFF, &t); #else ret = ioctl(fd, VFDSTANDBY, &t); #endif - ret = ioctl(fd, VFDPOWEROFF, &t); /* driver always returns einval here... if (ret < 0) perror("ioctl VFDSTANDBY");