Some fix and paste. Use putchar instead a write in protocol module.
[bertos.git] / examples / triface / protocol.c
index 156a414bc802983c28bc6a3f2d0f0ba43ba94497..397e8d0b2575460d9213751e24974e1df4cdcb25 100644 (file)
@@ -283,7 +283,7 @@ MAKE_CMD(ping, "", "",
 /* Dout  */
 MAKE_CMD(dout, "d", "",
 ({
-       kfile_write(&fd_sipo.fd, (uint8_t *)&args[1].l, 1);
+       kfile_putc((uint8_t)&args[1].l, &fd_sipo.fd);
 
        //Store status of dout ports.
        reg_status_dout = (uint8_t)args[1].l;