Skip to content

Commit 112e8c0

Browse files
committed
Fixed a warning in drv_eth.c.
1 parent 00e2e1f commit 112e8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/hc32/libraries/hc32_drivers/drv_eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ static void hc32_phy_monitor_thread(void *parameter)
488488
/* phy search */
489489
while (phy_addr == 0xFF)
490490
{
491-
rt_uint16_t i, temp;
491+
rt_uint16_t i, temp=0U;
492492

493493
for (i = 0; i <= 0x1F; i++)
494494
{

0 commit comments

Comments
 (0)