aboutsummaryrefslogtreecommitdiffstats
path: root/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysfs.c')
-rw-r--r--sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysfs.c b/sysfs.c
index e31aef2..ff3bb67 100644
--- a/sysfs.c
+++ b/sysfs.c
@@ -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));