From c217d0d8f225506eca9482a84602cfda405b87d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20F=C3=A4lt?= <mattiasf@control.lth.se> Date: Mon, 15 Apr 2019 18:47:12 +0200 Subject: [PATCH] Remove test file and remove unnessesary code --- src/Computer/BeagleBoneStream.jl | 8 ------- test/testConenction.jl | 39 -------------------------------- 2 files changed, 47 deletions(-) delete mode 100644 test/testConenction.jl diff --git a/src/Computer/BeagleBoneStream.jl b/src/Computer/BeagleBoneStream.jl index ee87330..4ec6a38 100644 --- a/src/Computer/BeagleBoneStream.jl +++ b/src/Computer/BeagleBoneStream.jl @@ -79,11 +79,3 @@ function read(bbstream::BeagleBoneStream, cmd) #TODO Do something with timestamps return vals[1], timestamps[1] end - -function close(bbstream::BeagleBoneStream) - for dev in bbstream.devices - close(dev) - end - close(bbstream.stream) - return -end diff --git a/test/testConenction.jl b/test/testConenction.jl deleted file mode 100644 index 47c46e3..0000000 --- a/test/testConenction.jl +++ /dev/null @@ -1,39 +0,0 @@ -using Sockets, Serialization -#BB side -function startbb() - @async begin - server = listen(2001) - while true - sock = accept(server) - println("accepted") - @async while isopen(sock) - l = deserialize(sock); - println(typeof(l)) - #print("Read: "); - println(l); - serialize(sock,l) - end - end - end -end - -#Computer side -clientside = connect(ip"192.168.7.2", 2001) -function getminor(t) - println(Int64(t)) - t2 = UInt64(floor(UInt64,t/1e9)*1e9) - tsmall = Int32(t-t2) -end - -function runcomp(clientside) - @async while isopen(clientside) - l = deserialize(clientside)::Int32; - #print("Read:"); - t = time_ns() - #println(t) - t2 = getminor(t) - println((t2-l)/1e6) - end -end -serialize(clientside, getminor(time_ns())) -end # module -- GitLab