From: Mart Lubbers Date: Tue, 24 Jan 2017 10:07:46 +0000 (+0100) Subject: remove traces X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=ee5171fbc1c8e1ea7454e95b3e89c24338423523;p=mTask.git remove traces --- diff --git a/int/main.c b/int/main.c index d6d5953..c4417f8 100644 --- a/int/main.c +++ b/int/main.c @@ -99,7 +99,7 @@ int main(int argc, char *argv[]){ //Check for newetasks // debug("loop"); loop(); - delay(100); + delay(50); } return 0; } diff --git a/mTaskInterpret.icl b/mTaskInterpret.icl index 0f68ed2..7a2559f 100644 --- a/mTaskInterpret.icl +++ b/mTaskInterpret.icl @@ -27,6 +27,7 @@ encode (MTSds i v) = "s" +++ to16bit i +++ v +++ "\n" encode (MTTask to data) = "t" +++ to16bit to +++ to16bit (size data) +++ data +++ "\n" encode (MTUpd i v) = "u" +++ to16bit i +++ v +++ "\n" +import StdDebug decode :: String -> MTaskMSGRecv decode x | size x == 0 = MTEmpty diff --git a/miTask.icl b/miTask.icl index 56a36f3..2634ce8 100644 --- a/miTask.icl +++ b/miTask.icl @@ -98,7 +98,8 @@ mTaskTask = let (msgs, sdsShares) = makeMsgs 1000 bc in # (msgs, st) = toMessages timeout (toRealByteCode (unMain bc)) = (msgs, map f st.sdss) where - f (i,d) = (i, sharedStore ("mTaskSDS-" +++ toString i) 0) + f (i,d) = (i, sharedStore ("mTaskSDS-" +++ toString i) (dd d)) + dd [x,y] = toInt x*265 + toInt y updateSDSs :: [(Int, Shared Int)] (Shared [String]) MTaskMSGRecv -> Task () updateSDSs _ m (MTMessage s) = upd (\l->take 20 [s:l]) m @! () @@ -167,7 +168,6 @@ serialDeviceBackgroundTask rw iworld (False, tty) = ([], tty) (_, tty) # (l, tty) = TTYreadline tty - | not (trace_tn ("recv: '" +++ l +++ "'")) = undef = ([decode l], tty) # iworld = {iworld & resources=Just (TTYd tty)} = case write (r++ml,[],False) rw iworld of