Arduino ide 1.8.20 hourly build and ameba arduino package 2.0.12 WatchdogTimer sketch compilation error

Hello,

I have arduino ide 1.8.20 hourly build and ameba arduino package 2.0.12 WatchdogTimer sketch has compilation error ,here is error

WDT.cpp:54:30: error: ‘watchdog_irq_init’ was not declared in this scope
watchdog_irq_init(NULL, 0); //disable second interrupt

what I need to do to fix it

-Thanks
-Alok
^

@Alok_Kumar_Mishra

Thanks for your feedback, there was a mistake and watchdog_irq_init was not declared in the header file.
To fix this, you can refer to this GitHub PR and edit the wdt_api.h file to add in the missing function.