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

pull/1266/merge
Daniel Campora 2015-05-11 19:56:55 +02:00
rodzic 2b62707051
commit 9466e154b4
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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

Wyświetl plik

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