remove debug prints

This commit is contained in:
Redo 2022-11-10 00:01:36 -06:00
parent 9c15a18853
commit 79dd1d7824
2 changed files with 2 additions and 3 deletions

View File

@ -45,6 +45,7 @@ function LogicGate_TextBrick2_Data::LuaLogic_Callback(%data, %brick, %arg) {
datablock fxDtsBrickData(LogicGate_TextBrick2Top2_Data : LogicGate_TextBrick2_Data) {
brickFile = $LuaLogic::Path @ "bricks/blb/ScreenTop.blb";
uiName = "Text Brick Right";
logicGlobal = "";
logicPortPos[0] = "0 0 0";
};
lualogic_registergatedefinition("LogicGate_TextBrick2Top2_Data");
@ -55,6 +56,7 @@ function LogicGate_TextBrick2Top2_Data::LuaLogic_Callback(%data, %brick, %arg) {
datablock fxDtsBrickData(LogicGate_TextBrick2Bottom2_Data : LogicGate_TextBrick2_Data) {
brickFile = $LuaLogic::Path @ "bricks/blb/ScreenBottom.blb";
uiName = "Text Brick Left";
logicGlobal = "";
logicPortPos[0] = "0 0 0";
};
lualogic_registergatedefinition("LogicGate_TextBrick2Bottom2_Data");

View File

@ -2,8 +2,6 @@
local function getBit(gate, val)
local gatedata = Gate.getdata(gate)
print("text brick bit "..val.." of "..textbrick2_bitsNeeded)
if gatedata.listenState=="wait" then
if val==1 then
gatedata.listenState = "getbits"
@ -19,7 +17,6 @@ local function getBit(gate, val)
elseif gatedata.listenState=="terminate" then
if val==1 then
local v = gatedata.valReceived
print("text brick received "..v)
local iscolor = math.floor(v/512)==1 -- first bit
if iscolor then
local printdomain = (math.floor(v/128)%2)==1 and "terminal" or "terminalInv" -- 8th lowest bit