aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods/pybuart.c
diff options
context:
space:
mode:
Diffstat (limited to 'cc3200/mods/pybuart.c')
-rw-r--r--cc3200/mods/pybuart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc3200/mods/pybuart.c b/cc3200/mods/pybuart.c
index 9465cef08..8d1f79b03 100644
--- a/cc3200/mods/pybuart.c
+++ b/cc3200/mods/pybuart.c
@@ -516,7 +516,7 @@ STATIC mp_obj_t pyb_uart_callback (mp_uint_t n_args, const mp_obj_t *pos_args, m
uint priority = mpcallback_translate_priority (args[2].u_int);
// check the power mode
- if (PYB_PWR_MODE_ACTIVE != args[3].u_int) {
+ if (PYB_PWR_MODE_ACTIVE != args[4].u_int) {
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, mpexception_value_invalid_arguments));
}