aboutsummaryrefslogtreecommitdiff
path: root/cc3200/mods
diff options
context:
space:
mode:
authorDaniel Campora2015-05-11 19:56:55 +0200
committerDaniel Campora2015-05-17 12:26:40 +0200
commit9466e154b4806ace535d4493d1dd6e63379c2f68 (patch)
tree73434186b14ef84984404ca82107213b14c7c5c7 /cc3200/mods
parent2b62707051a7345f55a7471602378542d985b1a1 (diff)
cc3200: Fix power mode param check in the UART callback constructor.
Diffstat (limited to 'cc3200/mods')
-rw-r--r--cc3200/mods/pybrtc.c2
-rw-r--r--cc3200/mods/pybuart.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/pybrtc.c b/cc3200/mods/pybrtc.c
index d57e11167..a9cc995d5 100644
--- a/cc3200/mods/pybrtc.c
+++ b/cc3200/mods/pybrtc.c
@@ -210,7 +210,7 @@ STATIC mp_obj_t pyb_rtc_callback (mp_uint_t n_args, const mp_obj_t *pos_args, mp
// set the match value
MAP_PRCMRTCMatchSet(seconds, mseconds);
- // save the match data for later
+ // save the power mode data for later
pybrtc_data.prwmode = args[4].u_int;
// create the callback
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));
}