shares are updated now and visible
[mTask.git] / client / sds.c
index c2fdbde..66bcb16 100644 (file)
@@ -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;