From 2bc25ce37584f16844ec38101b7e711476123db7 Mon Sep 17 00:00:00 2001 From: autocommitter Date: Mon, 22 Apr 2024 14:52:58 +0200 Subject: State at 2021-05-12 --- Crossroads/nodes/(2260,5,893).lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Crossroads') diff --git a/Crossroads/nodes/(2260,5,893).lua b/Crossroads/nodes/(2260,5,893).lua index 2149070..0b22fc6 100644 --- a/Crossroads/nodes/(2260,5,893).lua +++ b/Crossroads/nodes/(2260,5,893).lua @@ -1,8 +1,13 @@ if event.type == "train" then + local exp = "2" + local rec = get_line() or "" + local res = exp==rec and "PASS" or ("FAIL | %s"):format(rec) + digiline_send("lcd", res) atc_send("OCBBWI+R;") end if event.type == "ext_int" then if atc_id then + digiline_send("lcd", "...") set_line("1") atc_set_text_outside("LINE 1") atc_send("S4") -- cgit v1.2.3