samples: task_wdt: Use wdt device if it is ready
hw_wdt_dev may not be NULL and the device not be ready to be used.
If that is the case we explicitely initialize task_wdt_init with
NULL and do not use hw watchdog.
Signed-off-by:
Flavio Ceolin <flavio@hubblenetwork.com>
Loading
Please sign in to comment