Fix an issue that make reset of triface. Addedd a tag_ser KFIleSerial struct.
authorqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 23 Jul 2008 15:12:54 +0000 (15:12 +0000)
committerqwert <qwert@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 23 Jul 2008 15:12:54 +0000 (15:12 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1509 38d2e660-2303-0410-9eaa-f027e97ec537

app/triface/triface.c

index 270619bcc666f8dd5d7b21e00c655e0c58609d49..4b45f221471a1b2ef9db853de07c2f27d4473e78 100644 (file)
@@ -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);