diff options
| author | Damien George | 2019-11-05 11:33:03 +1100 |
|---|---|---|
| committer | Damien George | 2019-11-05 11:35:45 +1100 |
| commit | c13f9f209d7a343fe306a24a04eb934ce905b631 (patch) | |
| tree | 1f663134d7784aa0a2b43fe349e49ad82f5817f8 /ports/stm32/modnwcc3k.c | |
| parent | 80df377e9512ac839ab19192ff1897ba30be098b (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.c | 2 |
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 |
