X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=miTask.icl;h=2634ce8a6eae6d49da48cf4f09407bd6917a9292;hb=ee5171fbc1c8e1ea7454e95b3e89c24338423523;hp=56a36f39275d8945580553f9345608fa5c8a7bb4;hpb=3c04b0a726017a3c351df574adc8ddab94db541f;p=mTask.git 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