4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-27 23:47:05 +08:00

[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

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) pin_irq_hdr_tab[irqindex].args == args)
{ {
rt_hw_interrupt_enable(level); rt_hw_interrupt_enable(level);
return -RT_EOK; return RT_EOK;
} }
if (pin_irq_hdr_tab[irqindex].pin != -1) if (pin_irq_hdr_tab[irqindex].pin != -1)
{ {