Skip to content

Commit 287151d

Browse files
authored
Update drv_eth.c
1 parent 5bef2ee commit 287151d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bsp/hc32/libraries/hc32_drivers/drv_eth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static void hc32_eth_irq_handle(stc_eth_handle_t *eth_handle)
358358
result = eth_device_ready(&(hc32_eth_device.parent));
359359
if (result != RT_EOK)
360360
{
361-
#if !defined (RT_USING_ULOG) || defined (ULOG_USING_ISR_LOG)
361+
#if defined (RT_USING_ULOG) || defined (ULOG_USING_ISR_LOG)
362362
LOG_I("eth rx complete callback err = %d", result);
363363
#endif
364364
}
@@ -467,7 +467,7 @@ static void eth_phy_irq_handler(void *args)
467467
rt_uint16_t status = 0;
468468

469469
ETH_PHY_ReadReg(&EthHandle, PHY_IISDR, &status);
470-
#if !defined (RT_USING_ULOG) || defined (ULOG_USING_ISR_LOG)
470+
#if defined (RT_USING_ULOG) || defined (ULOG_USING_ISR_LOG)
471471
LOG_D("phy interrupt status reg is 0x%X", status);
472472
#endif
473473
#endif

0 commit comments

Comments
 (0)