From eac09291285e03c685e6937d2854eef7c016121f Mon Sep 17 00:00:00 2001
From: Fredrik Bagge Carlson <cont-frb@ulund.org>
Date: Fri, 19 Jan 2018 14:32:53 +0100
Subject: [PATCH] Update ballandbeam.jl

---
 src/interface_implementations/ballandbeam.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/interface_implementations/ballandbeam.jl b/src/interface_implementations/ballandbeam.jl
index 1764d1f..9ae3da6 100644
--- a/src/interface_implementations/ballandbeam.jl
+++ b/src/interface_implementations/ballandbeam.jl
@@ -99,8 +99,8 @@ function control(p::AbstractBeamOrBallAndBeam, u::AbstractArray)
     send(p.control,u[1])
 end
 control(p::AbstractBeamOrBallAndBeam, u::Number) = send(p.control,u)
-control(p::BeamSimulator, u)             = p.s(u)
-control(p::BallAndBeamSimulator, u)      = error("Not yet implemented")
+control(p::BeamSimulator, u::Number)             = p.s(u)
+control(p::BallAndBeamSimulator, u::Number)      = error("Not yet implemented")
 
 measure(p::Beam)                         = read(p.measure)
 measure(p::BallAndBeam)                  = [read(p.measure1), read(p.measure2)]
-- 
GitLab