aboutsummaryrefslogtreecommitdiff
path: root/ports/stm32/modnwcc3k.c
diff options
context:
space:
mode:
authorDamien George2019-11-05 11:33:03 +1100
committerDamien George2019-11-05 11:35:45 +1100
commitc13f9f209d7a343fe306a24a04eb934ce905b631 (patch)
tree1f663134d7784aa0a2b43fe349e49ad82f5817f8 /ports/stm32/modnwcc3k.c
parent80df377e9512ac839ab19192ff1897ba30be098b (diff)
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.
Diffstat (limited to 'ports/stm32/modnwcc3k.c')
-rw-r--r--ports/stm32/modnwcc3k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/modnwcc3k.c b/ports/stm32/modnwcc3k.c
index 8723994f4..b3fd93922 100644
--- a/ports/stm32/modnwcc3k.c
+++ b/ports/stm32/modnwcc3k.c
@@ -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