Commit 8db93c0d authored by Marcus Greiff's avatar Marcus Greiff
Browse files

Fix breaking change in write fucntion (val not set)

parent e5f5d95e
......@@ -16,7 +16,7 @@ function Base.read(::SysLED, ind::Int32)
ind [1,2,3,4] && error("Invalid SysLEND ind: $ind")
filename = "/sys/class/leds/beaglebone:green:usr$(ind-1)/brightness"
file = open(filename, "r")
l = readline(file, val)
l = readline(file)
(l != "1" && l != "0") && error("Invalid value \"$l\" read from SysLed")
close(file)
return l == "1"
......
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