update now working
[mTask.git] / int / sds.c
index 80c31f9..90617b1 100644 (file)
--- a/int/sds.c
+++ b/int/sds.c
@@ -69,10 +69,12 @@ void sds_publish(int id)
                        write_byte(sdss[cs].id);
                        write_byte(sdss[cs].value/265);
                        write_byte(sdss[cs].value%265);
+                       write_byte('\n');
                        return;
                }
        }
        debug("SDS identifier unknown: %d", id);
+       die("");
 }
 
 int sds_fetch(int id)
@@ -82,6 +84,7 @@ int sds_fetch(int id)
                if(sdss[cs].used && sdss[cs].id == id)
                        return sdss[cs].value;
        debug("SDS identifier unknown: %d", id);
+       die("");
        return 0;
 }
 
@@ -95,4 +98,5 @@ void sds_store(int id, int val)
                }
        }
        debug("SDS identifier unknown: %d", id);
+       die("");
 }