X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mTaskInterpret.icl;h=0ab4508c6fbf006aa1aa48b6cf5aad5c212af3fc;hb=e09afe083f9077d63a8bd6c27ed8fa5da60430a8;hp=21b53c901927d632134b09e60a53d76293c2589b;hpb=385cba3194e613293fbb1b7ef092a78eb6337528;p=mTask.git diff --git a/mTaskInterpret.icl b/mTaskInterpret.icl index 21b53c9..0ab4508 100644 --- a/mTaskInterpret.icl +++ b/mTaskInterpret.icl @@ -55,9 +55,9 @@ instance toString MTaskMSGRecv where bclength :: BC -> Int bclength (BCPush _) = 3 bclength (BCLab _) = 2 -bclength (BCSdsStore _) = 2 -bclength (BCSdsFetch _) = 2 -bclength (BCSdsPublish _) = 2 +bclength (BCSdsStore _) = 3 +bclength (BCSdsFetch _) = 3 +bclength (BCSdsPublish _) = 3 bclength (BCAnalogRead _) = 2 bclength (BCAnalogWrite _) = 2 bclength (BCDigitalRead _) = 2 @@ -73,9 +73,9 @@ toByteVal b = [bt:case b of (BCPush i) = i (BCLab i) = [toChar i] - (BCSdsStore i) = [toChar i] - (BCSdsFetch i) = [toChar i] - (BCSdsPublish i) = [toChar i] + (BCSdsStore i) = [c\\c<-:to16bit i] + (BCSdsFetch i) = [c\\c<-:to16bit i] + (BCSdsPublish i) = [c\\c<-:to16bit i] (BCAnalogRead i) = [toChar i] (BCAnalogWrite i) = [toChar i] (BCDigitalRead i) = [toChar i]