From af9cba1c451a41879ceddeab818bc265fb4923ff Mon Sep 17 00:00:00 2001 From: asterix Date: Fri, 21 Mar 2008 00:03:11 +0000 Subject: [PATCH] Use kfile interface. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1208 38d2e660-2303-0410-9eaa-f027e97ec537 --- net/keytag.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/keytag.c b/net/keytag.c index 3542aafd..861169b4 100644 --- a/net/keytag.c +++ b/net/keytag.c @@ -44,6 +44,8 @@ #include "keytag.h" +#include + #include #include @@ -66,7 +68,7 @@ static void keytag_clearPkt(struct TagPacket *pkt) int c; /* Get all chars from buffer */ - while ((c = ser_getchar_nowait(pkt->tag_ser)) != EOF) + while ((c = kfile_getc(&pkt->tag_ser->fd)) != EOF) { /* Search for STX char in received chars */ if (c == TAG_STX) @@ -84,7 +86,7 @@ static void keytag_clearPkt(struct TagPacket *pkt) { pkt->buf[TAG_MAX_PRINT_CHARS] = '\x0'; /* Write read TAG on communication serial */ - ser_printf(pkt->comm_ser, "tag %s", pkt->buf); + kfile_printf(&pkt->comm_ser->fd, "tag %s", pkt->buf); pkt->sync = false; } else -- 2.25.1