Watchdog

Hi,
I am trying to implement a wathdog on my OpenMV Cam M7.
As explained to that link : class WDT – watchdog timer — MicroPython 1.15 documentation
I wrote that code :

import machine
watchdog = machine.WDT(timeout=1000)
while(True):
watchdog.feed()


But when I run the script I get this error :
AttributeError: ‘module’ object has no attribute ‘WDT’

Do somebody know how to use correctly the watchdog timer ?

Mmm, it might be disabled in our code. Can you summit a bug to the GitHub repo about this. It will get fixed then for the next firmware release.

Hi,
This code is enabled in the current development firmware. If you don’t want to wait for the next release, you can clone the repo and upload the firmware image.

Hi,
I upgraded the firmware from the repo and now it works properly.
Thanks for your help !