diff options
Diffstat (limited to 'sysfs.c')
-rw-r--r-- | sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,7 +47,7 @@ long int sysfs_read_long_int(char *sysfs_file) return strtoll((char*)&buf,NULL,10); } -int sysfs_write_str(char *sysfs_file,char *value,int checkdelay) +int sysfs_write_str(char *sysfs_file,char *value,long int checkdelay) { int sysfs_handle; size_t len; @@ -66,7 +66,7 @@ int sysfs_write_str(char *sysfs_file,char *value,int checkdelay) DEBUG2_SYSFS("Written %zd bytes\n",len); // What if instructed to - if (checkdelay>0) usleep(checkdelay*1000); + if (checkdelay>0) usleep(checkdelay); // Validate we actually set what we want to set sysfs_read_str(sysfs_file,buf,sizeof(buf)); |