diff options
author | blmorris <bryan.morrissey@gmail.com> | 2015-04-16 13:40:06 -0400 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-16 22:30:00 +0100 |
commit | 4c459213499b289a1710aa0e6d3fb80c4889cc1f (patch) | |
tree | 3c4da3c9055f7b0bc83a282821400053b8fd2091 /stmhal/timer.c | |
parent | feff00e1a58aad4e7251d9c10403768fa814c5dd (diff) | |
download | micropython-4c459213499b289a1710aa0e6d3fb80c4889cc1f.tar.gz micropython-4c459213499b289a1710aa0e6d3fb80c4889cc1f.zip |
stmhal: Use new %q format to print qstr's in a few more places.
Saves 68 bytes.
Diffstat (limited to 'stmhal/timer.c')
-rw-r--r-- | stmhal/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/timer.c b/stmhal/timer.c index 0180cf4423..ed592069cc 100644 --- a/stmhal/timer.c +++ b/stmhal/timer.c @@ -846,7 +846,7 @@ STATIC mp_obj_t pyb_timer_channel(mp_uint_t n_args, const mp_obj_t *pos_args, mp const pin_obj_t *pin = pin_obj; const pin_af_obj_t *af = pin_find_af(pin, AF_FN_TIM, self->tim_id); if (af == NULL) { - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %s doesn't have an af for TIM%d", qstr_str(pin->name), self->tim_id)); + nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %q doesn't have an af for TIM%d", pin->name, self->tim_id)); } // pin.init(mode=AF_PP, af=idx) const mp_obj_t args2[6] = { |