From 30849ec19984f7a66d093ab574199bb4a399b2c5 Mon Sep 17 00:00:00 2001 From: 20kdc Date: Sat, 25 Mar 2017 11:36:21 +0000 Subject: [PATCH] Fix inverted RS signal how do I make mistakes in a row like this??? --- oc/ecomponents/app-rsctrl | 2 +- oc/uc-rsctl.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oc/ecomponents/app-rsctrl b/oc/ecomponents/app-rsctrl index 90b5279..1effa61 100644 --- a/oc/ecomponents/app-rsctrl +++ b/oc/ecomponents/app-rsctrl @@ -3,7 +3,7 @@ %-- EXAMPLE IoT Redstone Top Controller -- UR=CG("redstone") -UM={["true"]=0,["false"]=15} +UM={["true"]=15,["false"]=0} function UT(p) if UM[p]then US=p diff --git a/oc/uc-rsctl.lua b/oc/uc-rsctl.lua index e586dd2..33dd3b0 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")UM={["true"]=0,["false"]=15}function UT(p)if UM[p]then +UR=CG("redstone")UM={["true"]=15,["false"]=0}function UT(p)if UM[p]then US=p UR.setOutput(1,UM[p])end end