Skip to content

Commit 11e37b7

Browse files
authored
Merge pull request #17 from balanceTWK/master
【修复】 警告 | fix warning
2 parents 56c7f34 + 74c9b3e commit 11e37b7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ioLibrary/Ethernet/wizchip_conf.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,10 @@ void wizchip_sw_reset(void)
418418

419419
int8_t wizchip_init(uint8_t* txsize, uint8_t* rxsize)
420420
{
421-
int8_t i,j;
421+
#if _WIZCHIP_ < W5200 // add condition for w5100
422+
int8_t j;
423+
#endif
424+
int8_t i;
422425
int8_t tmp = 0;
423426
wizchip_sw_reset();
424427
if(txsize)

src/wiz_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static void wiz_data_thread_entry(void *parameter)
4949

5050
while (1)
5151
{
52-
if (rt_mb_recv(wiz_rx_mb, (rt_uint32_t*) &dev, RT_WAITING_FOREVER) == RT_EOK)
52+
if (rt_mb_recv(wiz_rx_mb, (rt_ubase_t*) &dev, RT_WAITING_FOREVER) == RT_EOK)
5353
{
5454
uint8_t ir, sir, sn_ir;
5555
int8_t socket = -1;

0 commit comments

Comments
 (0)