]> Pileus Git - ~andy/csm213a-hw/blobdiff - hw2/control.c
Update message definitions
[~andy/csm213a-hw] / hw2 / control.c
index 743c0a32ce78f54bbc2b7246127c1cd22ccdb08c..ea10f9b9cff340510b2489276baac3ce0d1521c0 100644 (file)
@@ -24,7 +24,7 @@ void dump(const char *label, uint8_t *data, int len)
 int main(int argc, char **argv)
 {
        if (argc < 3)
-               error("usage: host /dev/ttyACM0 0 sync");
+               error("usage: control /dev/ttyACM0 0 sync");
 
        // Parse args
        char *opt_tty    = argv[1];
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
        body.start.nanosec  = 0; //ts.tv_nsec;
        body.period.seconds = 0;
        body.period.nanosec =  100000000;
-       //                        [ ][ ]
+       //                  [s][m][u][n]
 
        // Transmit message
        FILE *fd = fopen(opt_tty, "a+");