We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233cded commit 07ab039Copy full SHA for 07ab039
port/modules/machine/machine_wdt.c
@@ -88,7 +88,7 @@ STATIC mp_obj_t machine_wdt_make_new(const mp_obj_type_t *type_in, size_t n_args
88
self->base.type = &machine_wdt_type;
89
// find WDT device
90
self->wdt_device = rt_device_find(wdt_dev_name);
91
- if (self->wdt_device == RT_NULL || self->wdt_device->type != RT_Device_Class_Miscellaneous) {
+ if (self->wdt_device == RT_NULL || self->wdt_device->type != RT_Device_Class_Security) {
92
nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "WDT(%s) don't exist", wdt_dev_name));
93
}
94
0 commit comments