summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/dac.c
diff options
context:
space:
mode:
authorblmorris <bryan.morrissey@gmail.com>2015-04-16 13:40:06 -0400
committerDamien George <damien.p.george@gmail.com>2015-04-16 22:30:00 +0100
commit4c459213499b289a1710aa0e6d3fb80c4889cc1f (patch)
tree3c4da3c9055f7b0bc83a282821400053b8fd2091 /stmhal/dac.c
parentfeff00e1a58aad4e7251d9c10403768fa814c5dd (diff)
downloadmicropython-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/dac.c')
-rw-r--r--stmhal/dac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/dac.c b/stmhal/dac.c
index e8ed752c06..222e2e3f37 100644
--- a/stmhal/dac.c
+++ b/stmhal/dac.c
@@ -124,7 +124,7 @@ STATIC mp_obj_t pyb_dac_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n
} else if (pin == &pin_A5) {
dac_id = 2;
} else {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %s does not have DAC capabilities", qstr_str(pin->name)));
+ nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_ValueError, "pin %q does not have DAC capabilities", pin->name));
}
}