summaryrefslogtreecommitdiff
path: root/stmhal/accel.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-15 11:54:41 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-15 11:54:41 +1000
commit48d867b4a68e53901aac87c2ff0f2a7e65f735c7 (patch)
tree178bfc0dc13bcb3b9d77c8a99652e9a9dc057e7d /stmhal/accel.c
parent1e70fda69fcb4991eb60ed43e610f664ea1319e6 (diff)
all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers.
Diffstat (limited to 'stmhal/accel.c')
-rw-r--r--stmhal/accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/accel.c b/stmhal/accel.c
index d0d4148ab..0e6eaf03d 100644
--- a/stmhal/accel.c
+++ b/stmhal/accel.c
@@ -90,7 +90,7 @@ STATIC void accel_start(void) {
}
if (status != HAL_OK) {
- nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_OSError, "accelerometer not found"));
+ mp_raise_msg(&mp_type_OSError, "accelerometer not found");
}
// set MMA to active mode