Kaynağa Gözat

优化修改代码

niujiuru 2 gün önce
ebeveyn
işleme
bb621eaff0
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      ymodem/ymodem.c

+ 1 - 1
ymodem/ymodem.c

@@ -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; }