From: qwert Date: Wed, 23 Jul 2008 15:12:54 +0000 (+0000) Subject: Fix an issue that make reset of triface. Addedd a tag_ser KFIleSerial struct. X-Git-Tag: 2.0.0~425 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0cfd2492cdde48cab72674fcb42917da599fb547;p=bertos.git Fix an issue that make reset of triface. Addedd a tag_ser KFIleSerial struct. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1509 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/triface/triface.c b/app/triface/triface.c index 270619bc..4b45f221 100644 --- a/app/triface/triface.c +++ b/app/triface/triface.c @@ -59,6 +59,7 @@ static KFileSerial fd_ser; +static KFileSerial tag_ser; int main(void) { @@ -80,10 +81,12 @@ int main(void) ser_init(&fd_ser, CONFIG_TRIFACE_PORT); ser_setbaudrate(&fd_ser, CONFIG_TRIFACE_BAUDRATE); - ser_init(pkt.tag_ser, TAG_SER_PORT); - ser_setbaudrate(pkt.tag_ser, TAG_SER_BAUDRATE); + ser_init(&tag_ser, TAG_SER_PORT); + ser_setbaudrate(&tag_ser, TAG_SER_BAUDRATE); pkt.comm_ser = &fd_ser; + pkt.tag_ser = &tag_ser; + keytag_init(&pkt); protocol_init(&fd_ser.fd);