diff options
| author | Damien George <damien.p.george@gmail.com> | 2019-11-05 11:33:03 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-11-05 11:35:45 +1100 |
| commit | c13f9f209d7a343fe306a24a04eb934ce905b631 (patch) | |
| tree | 1f663134d7784aa0a2b43fe349e49ad82f5817f8 /extmod/network_cyw43.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 'extmod/network_cyw43.c')
| -rw-r--r-- | extmod/network_cyw43.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/network_cyw43.c b/extmod/network_cyw43.c index fe73b0715..45bb6163e 100644 --- a/extmod/network_cyw43.c +++ b/extmod/network_cyw43.c @@ -196,7 +196,7 @@ STATIC mp_obj_t network_cyw43_scan(size_t n_args, const mp_obj_t *pos_args, mp_m int scan_res = cyw43_wifi_scan(self->cyw, &opts, MP_OBJ_TO_PTR(res), network_cyw43_scan_cb); if (scan_res < 0) { - nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, "STA must be active")); + mp_raise_msg(&mp_type_OSError, "STA must be active"); } // Wait for scan to finish, with a 10s timeout |
