diff --git a/src/BeagleBone/SysLED.jl b/src/BeagleBone/SysLED.jl
index 511957a6ec02074a3ca6b55a015c7a677db6731c..45589f9058c8c5aec7f5a71aaf5d9f3d041c37d5 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"