From 8db93c0d2b52560b90a451abdffeb1a125f26d0c Mon Sep 17 00:00:00 2001 From: mgreiff <marcusgreiff.93@hotmail.com> Date: Thu, 24 Aug 2017 01:40:33 +0200 Subject: [PATCH] Fix breaking change in write fucntion (val not set) --- src/BeagleBone/SysLED.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BeagleBone/SysLED.jl b/src/BeagleBone/SysLED.jl index 511957a..45589f9 100644 --- a/src/BeagleBone/SysLED.jl +++ b/src/BeagleBone/SysLED.jl @@ -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" -- GitLab