Просмотр исходного кода

Merge pull request #17 from balanceTWK/master

【修复】 警告 | fix warning
朱天龙 (Armink) 7 лет назад
Родитель
Сommit
11e37b7880
2 измененных файлов с 5 добавлено и 2 удалено
  1. 4 1
      ioLibrary/Ethernet/wizchip_conf.c
  2. 1 1
      src/wiz_device.c

+ 4 - 1
ioLibrary/Ethernet/wizchip_conf.c

@@ -418,7 +418,10 @@ void wizchip_sw_reset(void)
 
 int8_t wizchip_init(uint8_t* txsize, uint8_t* rxsize)
 {
-   int8_t i,j;
+#if _WIZCHIP_ < W5200	// add condition for w5100
+    int8_t j;
+#endif
+    int8_t i;
    int8_t tmp = 0;
    wizchip_sw_reset();
    if(txsize)

+ 1 - 1
src/wiz_device.c

@@ -49,7 +49,7 @@ static void wiz_data_thread_entry(void *parameter)
 
     while (1)
     {
-        if (rt_mb_recv(wiz_rx_mb, (rt_uint32_t*) &dev, RT_WAITING_FOREVER) == RT_EOK)
+        if (rt_mb_recv(wiz_rx_mb, (rt_ubase_t*) &dev, RT_WAITING_FOREVER) == RT_EOK)
         {
             uint8_t ir, sir, sn_ir;
             int8_t socket = -1;