@@ -149,7 +149,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_rtc_memory_obj, 1, 2, machine
149
149
150
150
STATIC mp_obj_t machine_rtc_wake_on_touch (mp_obj_t self_in , const mp_obj_t wake ) {
151
151
(void )self_in ; // unused
152
-
152
+
153
153
machine_rtc_config .wake_on_touch = mp_obj_is_true (wake );
154
154
return mp_const_none ;
155
155
}
@@ -194,13 +194,13 @@ STATIC mp_obj_t machine_rtc_wake_on_ext1(size_t n_args, const mp_obj_t *pos_args
194
194
195
195
196
196
// Check that all pins are allowed
197
- if (args [ARG_pins ].u_obj != mp_const_none ) {
197
+ if (args [ARG_pins ].u_obj != mp_const_none ) {
198
198
mp_uint_t len = 0 ;
199
199
mp_obj_t * elem ;
200
200
mp_obj_get_array (args [ARG_pins ].u_obj , & len , & elem );
201
201
ext1_pins = 0 ;
202
202
203
- for (int i = 0 ; i < len ; i ++ ) {
203
+ for (int i = 0 ; i < len ; i ++ ) {
204
204
205
205
gpio_num_t pin_id = machine_pin_get_id (elem [i ]);
206
206
// mp_int_t pin = mp_obj_get_int(elem[i]);
@@ -224,7 +224,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_KW(machine_rtc_wake_on_ext1_obj, 1, machine_rtc_w
224
224
STATIC const mp_map_elem_t machine_rtc_locals_dict_table [] = {
225
225
{ MP_OBJ_NEW_QSTR (MP_QSTR_datetime ), (mp_obj_t )& machine_rtc_datetime_obj },
226
226
{ MP_OBJ_NEW_QSTR (MP_QSTR_memory ), (mp_obj_t )& machine_rtc_memory_obj },
227
- // FIXME -- need to enable touch IRQ for this to work,
227
+ // FIXME -- need to enable touch IRQ for this to work,
228
228
// doesn't seem possible in the IDF presently.
229
229
// { MP_OBJ_NEW_QSTR(MP_QSTR_wake_on_touch), (mp_obj_t)&machine_rtc_wake_on_touch_obj },
230
230
{ MP_OBJ_NEW_QSTR (MP_QSTR_wake_on_ext0 ), (mp_obj_t )& machine_rtc_wake_on_ext0_obj },
0 commit comments