not working again.
[mTask.git] / mTaskInterpret.icl
index 21b53c9..0ab4508 100644 (file)
@@ -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]