[error code][RT_EOK] fix RT_EOK with -

This commit is contained in:
Meco Man 2023-03-16 00:47:22 -04:00 committed by Man, Jianting (Meco)
parent 991a2f1e9e
commit e4e88b2f3e
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ static rt_err_t hk32_pin_attach_irq(struct rt_device *device, rt_int32_t pin,
pin_irq_hdr_tab[irqindex].args == args)
{
rt_hw_interrupt_enable(level);
return -RT_EOK;
return RT_EOK;
}
if (pin_irq_hdr_tab[irqindex].pin != -1)
{