X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Fsds.c;h=66bcb16a407c166a93faa8a2ad3fbec9228e0d53;hb=7ab8606c3d22a2bc2743eae7a398407c84d502f2;hp=c2fdbdea251778bb878b79f4506d5f8bc737c171;hpb=55afb005ced3bba3813163596cdc7288a318a3c2;p=mTask.git diff --git a/client/sds.c b/client/sds.c index c2fdbde..66bcb16 100644 --- a/client/sds.c +++ b/client/sds.c @@ -32,6 +32,7 @@ void sds_register(void) //Read identifier sdss[cs].id = read16(); //Read value + sdss[cs].type = read_byte(); sdss[cs].value = read16(); debug("Received sds %d: %d", sdss[cs].id, sdss[cs].value); @@ -83,6 +84,7 @@ void sds_publish(int id) debug("Publish %d=%d", sdss[cs].id, sdss[cs].value); write_byte('p'); write16(sdss[cs].id); + write_byte(sdss[cs].type); write16(sdss[cs].value); write_byte('\n'); return;