/* Escape characters with special meaning */
if (c == POCKETBUS_ESC || c == POCKETBUS_STX || c == POCKETBUS_ETX)
kfile_putc(POCKETBUS_ESC, ctx->fd);
-
+
kfile_putc(c, ctx->fd);
}
/* Send STX */
kfile_putc(POCKETBUS_STX, ctx->fd);
-
+
/* Send header */
pocketbus_write(ctx, &hdr, sizeof(hdr));
}