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/adc.c | |
parent | feff00e1a58aad4e7251d9c10403768fa814c5dd (diff) |
stmhal: Use new %q format to print qstr's in a few more places.
Saves 68 bytes.
Diffstat (limited to 'stmhal/adc.c')
-rw-r--r-- | stmhal/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/adc.c b/stmhal/adc.c index bc48f7b17..57e2e60d2 100644 --- a/stmhal/adc.c +++ b/stmhal/adc.c @@ -163,7 +163,7 @@ STATIC mp_obj_t adc_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const pin_obj_t *pin = pin_find(pin_obj); if ((pin->adc_num & PIN_ADC1) == 0) { // No ADC1 function on that pin - nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %s does not have ADC capabilities", qstr_str(pin->name))); + nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %q does not have ADC capabilities", pin->name)); } channel = pin->adc_channel; } |