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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy