ymodem: fix examples due to new API

This commit is contained in:
Grissiom
2014-11-03 11:46:57 +08:00
parent 73d8f72aea
commit fe603dd379
3 changed files with 8 additions and 8 deletions

View File

@@ -25,8 +25,8 @@ rt_err_t rym_cat_to_dev(rt_device_t idev, rt_device_t odev)
rt_kprintf("open output device error: 0x%x", -res);
return res;
}
res = rym_recv_on_device(&rctx, idev,
RT_NULL, _rym_echo_data, RT_NULL, 1000);
res = rym_recv_on_device(&rctx, idev, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX,
RT_NULL, _rym_echo_data, RT_NULL, 1000);
rt_device_close(_odev);
rt_kprintf("leaving RYM mode with code %X\n", res);
return res;