summaryrefslogtreecommitdiff
path: root/durt/nodes/(-2135,21,920).lua
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-10-15 22:37:32 +0200
commit5c7f77725394d47ce0b907aabf885ea207a507bd (patch)
treea1ff9c67ef8f225a259e4c6f4c163a45c58bb870 /durt/nodes/(-2135,21,920).lua
parentb435d1b1b26db6f7c4f3eb589ecf1ed3bb79b57e (diff)
downloadluaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.gz
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.tar.bz2
luaatc_envs-5c7f77725394d47ce0b907aabf885ea207a507bd.zip
State at 2024-10-15
Diffstat (limited to 'durt/nodes/(-2135,21,920).lua')
-rw-r--r--durt/nodes/(-2135,21,920).lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/durt/nodes/(-2135,21,920).lua b/durt/nodes/(-2135,21,920).lua
new file mode 100644
index 0000000..74dac88
--- /dev/null
+++ b/durt/nodes/(-2135,21,920).lua
@@ -0,0 +1,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 \ No newline at end of file