mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
all: Convert nlr_raise(mp_obj_new_exception_msg(x)) to mp_raise_msg(x).
This helper function was added a while ago and these are the remaining cases to convert, to save a bit of code size.
This commit is contained in:
@@ -443,7 +443,7 @@ STATIC mp_obj_t cc3k_make_new(const mp_obj_type_t *type, size_t n_args, size_t n
|
||||
ReadWlanInterruptPin, SpiResumeSpi, SpiPauseSpi, WriteWlanPin);
|
||||
|
||||
if (wlan_start(0) != 0) {
|
||||
nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "failed to init CC3000 module"));
|
||||
mp_raise_msg(&mp_type_OSError, "failed to init CC3000 module");
|
||||
}
|
||||
|
||||
// set connection policy. this should be called explicitly by the user
|
||||
|
||||
Reference in New Issue
Block a user