From e582a8e7ce5c8d1f244201958724843e62832bf2 Mon Sep 17 00:00:00 2001 From: 20kdc Date: Sat, 25 Mar 2017 11:30:57 +0000 Subject: [PATCH] Fix stupid mistake when updating rsctl. --- oc/ecomponents/app-rsctrl | 3 ++- oc/uc-rsctl.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/oc/ecomponents/app-rsctrl b/oc/ecomponents/app-rsctrl index 4fbc55b..90b5279 100644 --- a/oc/ecomponents/app-rsctrl +++ b/oc/ecomponents/app-rsctrl @@ -3,8 +3,9 @@ %-- EXAMPLE IoT Redstone Top Controller -- UR=CG("redstone") +UM={["true"]=0,["false"]=15} function UT(p) - if ({["true"]=0,["false"]=15})[p]then + if UM[p]then US=p UR.setOutput(1,UM[p]) end diff --git a/oc/uc-rsctl.lua b/oc/uc-rsctl.lua index 331b7ad..e586dd2 100644 --- a/oc/uc-rsctl.lua +++ b/oc/uc-rsctl.lua @@ -53,7 +53,7 @@ TS(t,g..S.char(a,1)..d)x=RP(j,R4)end RN[t..g]=x end j()end -- EXAMPLE IoT Redstone Top Controller -- -UR=CG("redstone")function UT(p)if ({["true"]=0,["false"]=15})[p]then +UR=CG("redstone")UM={["true"]=0,["false"]=15}function UT(p)if UM[p]then US=p UR.setOutput(1,UM[p])end end