summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2135,21,920).lua
blob: 74dac883f7affdf9cc4ea84bac71a9868cb05f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local ch = {
	output = "ars_manual_input",
	get = "ars_set_query",
	input = "ars_set",
	indicator = "ars_indicator",
	lcd = "lcd",
	debug = "debug"
}

if event.train then
	digiline_send(ch.get, "GET")
	return
end

if event.digiline then
	if event.channel==ch.input then
		if not atc_id then
			digiline_send(ch.indicator, true)
			return
		end
		set_rc(tostring(event.msg))
		digiline_send(ch.indicator, false)
		return
	end
end