Ver código fonte

优化修改ymodem源码

niujiuru 2 dias atrás
pai
commit
c75015288a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      ymodem/ymodem.c

+ 2 - 2
ymodem/ymodem.c

@@ -29,7 +29,7 @@ static const char *u32_to_str(unsigned int val)
   return &num_str[pos];
 }
 
-static unsigned long str_to_u32(char* str)
+static unsigned long str_to_u32(char *str)
 {
   const char *s = str; unsigned long acc; int c;
 
@@ -125,7 +125,7 @@ static int comio_data_recv_proc(unsigned long wParam/*传递打开的串口句
   const char *log_prefix = serial_get_log_prefix(pSerial); RingBufElement val = pRecvBuf[nRecvBytes - 1]; // 1字节数据
   if(!RingBuf_put(&pComIO->rx_buf, val)) {
     uart_putchar(CAN); uart_putchar(CAN);
-    sw_log_error("%s: sorry,ring buffer full, failed to put!!!", log_prefix);
+    sw_log_error("%s: sorry,ring buffer full, failed to put!!", log_prefix);
     return -1;
   }
   serial_clear_recv_buffer(pSerial);