|
|
@@ -318,7 +318,7 @@ int ymodem_send_file(const char *path)
|
|
|
|
|
|
if(sw_file_load(path, "rb", file_buf, file_size) != file_size) { ret = -4; goto ret_p; }
|
|
|
|
|
|
- RingBuf_ctor(&s_myUart.rx_buf, s_myUart.rx_buf_storage, sizeof(s_myUart.rx_buf_storage) / sizeof(RingBufElement));
|
|
|
+ RingBuf_ctor(&s_myUart.rx_buf, s_myUart.rx_buf_storage, sizeof(s_myUart.rx_buf_storage)/sizeof(RingBufElement));
|
|
|
s_myUart.h = serial_open(UART_DEVICE_NAME, UART_BAUD_RATE, UART_PARITY_CHECK, \
|
|
|
comio_data_recv_proc, NULL, NULL);
|
|
|
if(!s_myUart.h) { ret = -5; goto ret_p; }
|