|
@@ -112,10 +112,9 @@ void ymodem_ota(uint8_t argc, char **argv)
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- rt_console_set_device("uart2");
|
|
|
|
|
rt_kprintf("Warning: Ymodem has started! This operator will not recovery.\n");
|
|
rt_kprintf("Warning: Ymodem has started! This operator will not recovery.\n");
|
|
|
rt_kprintf("Please select the ota firmware file and use Ymodem to send.\n");
|
|
rt_kprintf("Please select the ota firmware file and use Ymodem to send.\n");
|
|
|
-
|
|
|
|
|
|
|
+ rt_console_set_device("uart2");
|
|
|
if (!rym_recv_on_device(&rctx, rt_console_get_device(), RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX,
|
|
if (!rym_recv_on_device(&rctx, rt_console_get_device(), RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_INT_RX,
|
|
|
ymodem_on_begin, ymodem_on_data, NULL, RT_TICK_PER_SECOND))
|
|
ymodem_on_begin, ymodem_on_data, NULL, RT_TICK_PER_SECOND))
|
|
|
{
|
|
{
|