Skip to content
Snippets Groups Projects
Verified Commit d1e24c6c authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Move usage to the top to decrease latency

parent 05b73834
No related branches found
No related tags found
No related merge requests found
Pipeline #26625 passed
#!/usr/bin/env julia
if length(ARGS) < 2
println("Usage: ./live_royfit.jl LIGIER_HOST LIGIER_PORT")
exit(1)
end
println("Initialising libraries, this may take a minute...")
using Sockets
using NeRCA
......@@ -8,12 +14,6 @@ using Dates
using Measures
GR.inline("png")
if length(ARGS) < 2
println("Usage: ./live_royfit.jl LIGIER_HOST LIGIER_PORT")
exit(1)
end
const calib = NeRCA.read_calibration("/data/latest.detx")
const LIGIER_HOST = getalladdrinfo(ARGS[1])[1]
const LIGIER_PORT = parse(Int, ARGS[2])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment