cc3200: Fix power mode param check in the UART callback constructor.

This commit is contained in:
Daniel Campora 2015-05-11 19:56:55 +02:00
parent 2b62707051
commit 9466e154b4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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));
}