From: asterix Date: Thu, 4 Dec 2008 17:58:32 +0000 (+0000) Subject: Comply to new xmoden interface. Reformat. X-Git-Tag: 2.1.0~706 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=49179e986dad90dc27cf90aa12ba73eebd8443cc;p=bertos.git Comply to new xmoden interface. Reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1976 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/examples/triface/boot/main.c b/examples/triface/boot/main.c index a1279ac1..7af08126 100644 --- a/examples/triface/boot/main.c +++ b/examples/triface/boot/main.c @@ -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;