Comply to new xmoden interface. Reformat.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 4 Dec 2008 17:58:32 +0000 (17:58 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 4 Dec 2008 17:58:32 +0000 (17:58 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1976 38d2e660-2303-0410-9eaa-f027e97ec537

examples/triface/boot/main.c

index a1279ac177b3a98887fc01934feb84ab5a654cfa..7af08126b67853ac18bc46dc61d009941cf5df90 100644 (file)
@@ -108,9 +108,10 @@ int main(void)
        ser_init(&ser, CONFIG_BOOT_PORT);
        ser_setbaudrate(&ser, CONFIG_BOOT_BAUDRATE);
 
-       xmodem_recv(&ser, &flash.fd);
+       xmodem_recv(&ser.fd, &flash.fd);
+
        kfile_close(&flash.fd);
-    kfile_close(&ser.fd);
+       kfile_close(&ser.fd);
 
        IRQ_DISABLE;