Still working, fixed sds update
authorMart Lubbers <mart@martlubbers.net>
Tue, 24 Jan 2017 09:52:51 +0000 (10:52 +0100)
committerMart Lubbers <mart@martlubbers.net>
Tue, 24 Jan 2017 09:52:51 +0000 (10:52 +0100)
int/interface.c
int/sds.c

index 510f5cb..0916ee5 100644 (file)
@@ -75,12 +75,13 @@ void setup(void)
 
 void debug(char *fmt, ...)
 {
-       unsigned int i;
-       write_byte('m');
-       for(i = 0; i<strlen(fmt); i++){
-               write_byte((uint8_t)fmt[i]);
-       }
-       write_byte('\n');
+       //unsigned int i;
+       //write_byte('m');
+       //for(i = 0; i<strlen(fmt); i++){
+       //      write_byte((uint8_t)fmt[i]);
+       //}
+       //write_byte('\n');
+       (void)fmt;
 }
 
 void pdie(char *s)
index 6b96c6c..90617b1 100644 (file)
--- a/int/sds.c
+++ b/int/sds.c
@@ -69,6 +69,7 @@ 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;
                }
        }