Skip to content

Commit 8f93ae8

Browse files
committed
esp32/machine_rtc.c: format fixes
esp32/modmachine.c: format fixes
1 parent e6e5543 commit 8f93ae8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

esp32/machine_rtc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(machine_rtc_memory_obj, 1, 2, machine
149149

150150
STATIC mp_obj_t machine_rtc_wake_on_touch(mp_obj_t self_in, const mp_obj_t wake) {
151151
(void)self_in; // unused
152-
152+
153153
machine_rtc_config.wake_on_touch = mp_obj_is_true(wake);
154154
return mp_const_none;
155155
}
@@ -194,13 +194,13 @@ STATIC mp_obj_t machine_rtc_wake_on_ext1(size_t n_args, const mp_obj_t *pos_args
194194

195195

196196
// 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) {
198198
mp_uint_t len = 0;
199199
mp_obj_t *elem;
200200
mp_obj_get_array(args[ARG_pins].u_obj, &len, &elem);
201201
ext1_pins = 0;
202202

203-
for(int i = 0; i < len; i++) {
203+
for (int i = 0; i < len; i++) {
204204

205205
gpio_num_t pin_id = machine_pin_get_id(elem[i]);
206206
// 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
224224
STATIC const mp_map_elem_t machine_rtc_locals_dict_table[] = {
225225
{ MP_OBJ_NEW_QSTR(MP_QSTR_datetime), (mp_obj_t)&machine_rtc_datetime_obj },
226226
{ 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,
228228
// doesn't seem possible in the IDF presently.
229229
// { MP_OBJ_NEW_QSTR(MP_QSTR_wake_on_touch), (mp_obj_t)&machine_rtc_wake_on_touch_obj },
230230
{ MP_OBJ_NEW_QSTR(MP_QSTR_wake_on_ext0), (mp_obj_t)&machine_rtc_wake_on_ext0_obj },

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy