8000 driver/dht: Use mp_raise_OSError helper function. · boneskull/circuitpython@e3d2999 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3d2999

Browse files
committed
driver/dht: Use mp_raise_OSError helper function.
1 parent 75af908 commit e3d2999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dht/dht.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ STATIC mp_obj_t dht_readinto(mp_obj_t pin_in, mp_obj_t buf_in) {
8484

8585
timeout:
8686
mp_hal_quiet_timing_exit(irq_state);
87-
nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(MP_ETIMEDOUT)));
87+
mp_raise_OSError(MP_ETIMEDOUT);
8888
}
8989
MP_DEFINE_CONST_FUN_OBJ_2(dht_readinto_obj, dht_readinto);

0 commit comments

Comments
 (0)
0