Comply to new xmoden interface. Reformat.
[bertos.git] / 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;