drivers: sensor: npcx: fix debug message when port B is captured

Fix wrong debug message when port B of tachometer is captured.

Signed-off-by: Evan Chang <MCCHANG1@nuvoton.com>
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
Mulin Chao 2023-09-21 23:43:32 -07:00 committed by Maureen Helm
parent 9e6960fe90
commit 21d7c2db6d

View file

@ -176,7 +176,7 @@ static inline bool tach_npcx_is_captured(const struct device *dev)
LOG_DBG("port A is captured %d, port b is captured %d",
IS_BIT_SET(inst->TECTRL, NPCX_TECTRL_TAPND),
IS_BIT_SET(inst->TECTRL, NPCX_TECTRL_TAPND));
IS_BIT_SET(inst->TECTRL, NPCX_TECTRL_TBPND));
/*
* In mode 5, the flag TAPND or TBPND indicates a input captured on