Commit 0a06b6ec authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

hex or dec input

parent 3ca3fab5
......@@ -615,7 +615,7 @@ static ssize_t gpio_10389_set(struct device *dev, struct device_attribute *attr,
{
int result;
int value;
sscanf(buf, "%x", &value);
sscanf(buf, "%i", &value);
result = gpio_10389_ctrl(dev,value);
if (result<0) return result;
return count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment