Skip to content

Commit 84fa331

Browse files
stinosdpgeorge
authored andcommitted
all: Format code to add space after C++-style comment start.
Note: the uncrustify configuration is explicitly set to 'add' instead of 'force' in order not to alter the comments which use extra spaces after // as a means of indenting text for clarity.
1 parent d624356 commit 84fa331

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+201
-201
lines changed

extmod/modubinascii.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,4 @@ const mp_obj_module_t mp_module_ubinascii = {
248248
.globals = (mp_obj_dict_t *)&mp_module_binascii_globals,
249249
};
250250

251-
#endif //MICROPY_PY_UBINASCII
251+
#endif // MICROPY_PY_UBINASCII

extmod/moducryptolib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,4 +375,4 @@ const mp_obj_module_t mp_module_ucryptolib = {
375375
.globals = (mp_obj_dict_t *)&mp_module_ucryptolib_globals,
376376
};
377377

378-
#endif //MICROPY_PY_UCRYPTOLIB
378+
#endif // MICROPY_PY_UCRYPTOLIB

extmod/moductypes.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
431431
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(deref);
432432
mp_uint_t val_type = GET_TYPE(offset, VAL_TYPE_BITS);
433433
offset &= VALUE_MASK(VAL_TYPE_BITS);
434-
//printf("scalar type=%d offset=%x\n", val_type, offset);
434+
// printf("scalar type=%d offset=%x\n", val_type, offset);
435435

436436
if (val_type <= INT64 || val_type == FLOAT32 || val_type == FLOAT64) {
437437
// printf("size=%d\n", GET_SCALAR_SIZE(val_type));
@@ -501,7 +501,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
501501
mp_int_t offset = MP_OBJ_SMALL_INT_VALUE(sub->items[0]);
502502
mp_uint_t agg_type = GET_TYPE(offset, AGG_TYPE_BITS);
503503
offset &= VALUE_MASK(AGG_TYPE_BITS);
504-
//printf("agg type=%d offset=%x\n", agg_type, offset);
504+
// printf("agg type=%d offset=%x\n", agg_type, offset);
505505

506506
switch (agg_type) {
507507
case STRUCT: {
@@ -525,7 +525,7 @@ STATIC mp_obj_t uctypes_struct_attr_op(mp_obj_t self_in, qstr attr, mp_obj_t set
525525
o->desc = MP_OBJ_FROM_PTR(sub);
526526
o->addr = self->addr + offset;
527527
o->flags = self->flags;
528-
//printf("PTR/ARR base addr=%p\n", o->addr);
528+
// printf("PTR/ARR base addr=%p\n", o->addr);
529529
return MP_OBJ_FROM_PTR(o);
530530
}
531531
}

extmod/moduhashlib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,4 +346,4 @@ const mp_obj_module_t mp_module_uhashlib = {
346346
.globals = (mp_obj_dict_t *)&mp_module_uhashlib_globals,
347347
};
348348

349-
#endif //MICROPY_PY_UHASHLIB
349+
#endif // MICROPY_PY_UHASHLIB

extmod/moduheapq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ const mp_obj_module_t mp_module_uheapq = {
119119
};
120120
#endif
121121

122-
#endif //MICROPY_PY_UHEAPQ
122+
#endif // MICROPY_PY_UHEAPQ

extmod/modujson.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,4 @@ const mp_obj_module_t mp_module_ujson = {
323323
.globals = (mp_obj_dict_t *)&mp_module_ujson_globals,
324324
};
325325

326-
#endif //MICROPY_PY_UJSON
326+
#endif // MICROPY_PY_UJSON

extmod/modurandom.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ const mp_obj_module_t mp_module_urandom = {
224224
};
225225
#endif
226226

227-
#endif //MICROPY_PY_URANDOM
227+
#endif // MICROPY_PY_URANDOM

extmod/modure.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,4 +474,4 @@ const mp_obj_module_t mp_module_ure = {
474474
#include "re1.5/recursiveloop.c"
475475
#include "re1.5/charclass.c"
476476

477-
#endif //MICROPY_PY_URE
477+
#endif // MICROPY_PY_URE

extmod/modutimeq.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ const mp_obj_module_t mp_module_utimeq = {
230230
.globals = (mp_obj_dict_t *)&mp_module_utimeq_globals,
231231
};
232232

233-
#endif //MICROPY_PY_UTIMEQ
233+
#endif // MICROPY_PY_UTIMEQ

extmod/moduwebsocket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ STATIC mp_uint_t websocket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
200200
return 0;
201201
}
202202

203-
//DEBUG_printf("Finished receiving ctrl message %x, ignoring\n", self->last_flags);
203+
// DEBUG_printf("Finished receiving ctrl message %x, ignoring\n", self->last_flags);
204204
continue;
205205
}
206206
}

extmod/modwebrepl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int
190190
mp_obj_webrepl_t *self = MP_OBJ_TO_PTR(self_in);
191191
const mp_stream_p_t *sock_stream = mp_get_stream(self->sock);
192192
mp_uint_t out_sz = sock_stream->read(self->sock, buf, size, errcode);
193-
//DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz);
193+
// DEBUG_printf("webrepl: Read %d initial bytes from websocket\n", out_sz);
194194
if (out_sz == 0 || out_sz == MP_STREAM_ERROR) {
195195
return out_sz;
196196
}

extmod/network_cyw43.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ STATIC int network_cyw43_scan_cb(void *env, const cyw43_ev_scan_result_t *res) {
153153
MP_OBJ_NEW_SMALL_INT(res->channel),
154154
MP_OBJ_NEW_SMALL_INT(res->rssi),
155155
MP_OBJ_NEW_SMALL_INT(res->auth_mode),
156-
//mp_const_false, // hidden
156+
// mp_const_false, // hidden
157157
MP_OBJ_NEW_SMALL_INT(1), // N
158158
};
159159
mp_obj_list_append(list, mp_obj_new_tuple(6, tuple));

lib/utils/printf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ int snprintf(char *str, size_t size, const char *fmt, ...) {
130130
return ret;
131131
}
132132

133-
#endif //MICROPY_USE_INTERNAL_PRINTF
133+
#endif // MICROPY_USE_INTERNAL_PRINTF

lib/utils/pyexec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ typedef struct _repl_t {
168168
// but it was moved to MP_STATE_VM(repl_line) as containing
169169
// root pointer. Still keep structure in case more state
170170
// will be added later.
171-
//vstr_t line;
171+
// vstr_t line;
172172
bool cont_line;
173173
bool paste_mode;
174174
} repl_t;

mpy-cross/gccollect.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,4 @@ void gc_collect(void) {
146146
gc_collect_end();
147147
}
148148

149-
#endif //MICROPY_ENABLE_GC
149+
#endif // MICROPY_ENABLE_GC

mpy-cross/mpconfigport.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ typedef long mp_off_t;
141141
#else
142142
#define MP_SSIZE_MAX _I32_MAX
143143
#endif
144-
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)(p)) //Avoid compiler warning about different const qualifiers
144+
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)(p)) // Avoid compiler warning about different const qualifiers
145145
#define restrict
146146
#define inline __inline
147147
#define alignof(t) __alignof(t)

ports/cc3200/mptask.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ STATIC void mptask_pre_init (void) {
283283
// this one allocates memory for the socket semaphore
284284
modusocket_pre_init();
285285

286-
//CRYPTOHASH_Init();
286+
// CRYPTOHASH_Init();
287287

288288
#ifndef DEBUG
289289
OsiTaskHandle svTaskHandle;

ports/esp32/machine_hw_spi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ STATIC void machine_hw_spi_init_internal(
188188
.pre_cb = NULL
189189
};
190190

191-
//Initialize the SPI bus
191+
// Initialize the SPI bus
192192

193193
// Select DMA channel based on the hardware SPI host
194194
int dma_chan = 0;

ports/esp32/modesp32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ STATIC mp_obj_t esp32_wake_on_touch(const mp_obj_t wake) {
5151
if (machine_rtc_config.ext0_pin != -1) {
5252
mp_raise_ValueError(MP_ERROR_TEXT("no resources"));
5353
}
54-
//mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("touchpad wakeup not available for this version of ESP-IDF"));
54+
// mp_raise_msg(&mp_type_RuntimeError, MP_ERROR_TEXT("touchpad wakeup not available for this version of ESP-IDF"));
5555

5656
machine_rtc_config.wake_on_touch = mp_obj_is_true(wake);
5757
return mp_const_none;

ports/esp32/modmachine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "py/obj.h"
55

66
typedef enum {
7-
//MACHINE_WAKE_IDLE=0x01,
7+
// MACHINE_WAKE_IDLE=0x01,
88
MACHINE_WAKE_SLEEP=0x02,
99
MACHINE_WAKE_DEEPSLEEP=0x04
1010
} wake_type_t;

ports/esp32/modnetwork.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ STATIC const mp_rom_map_elem_t mp_module_network_globals_table[] = {
782782
{ MP_ROM_QSTR(MP_QSTR_ETH_CLOCK_GPIO0_IN), MP_ROM_INT(ETH_CLOCK_GPIO0_IN) },
783783
// Disabled at Aug 22nd 2018, reenabled Jan 28th 2019 in ESP-IDF
784784
// Because we use older SDK, it's currently disabled
785-
//{ MP_ROM_QSTR(MP_QSTR_ETH_CLOCK_GPIO0_OUT), MP_ROM_INT(ETH_CLOCK_GPIO0_OUT) },
785+
// { MP_ROM_QSTR(MP_QSTR_ETH_CLOCK_GPIO0_OUT), MP_ROM_INT(ETH_CLOCK_GPIO0_OUT) },
786786
{ MP_ROM_QSTR(MP_QSTR_ETH_CLOCK_GPIO16_OUT), MP_ROM_INT(ETH_CLOCK_GPIO16_OUT) },
787787
{ MP_ROM_QSTR(MP_QSTR_ETH_CLOCK_GPIO17_OUT), MP_ROM_INT(ETH_CLOCK_GPIO17_OUT) },
788788
#endif

ports/esp32/network_lan.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ STATIC mp_obj_t get_lan(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_ar
130130
if (args[ARG_clock_mode].u_int != -1 &&
131131
args[ARG_clock_mode].u_int != ETH_CLOCK_GPIO0_IN &&
132132
// Disabled due ESP-IDF (see modnetwork.c note)
133-
//args[ARG_clock_mode].u_int != ETH_CLOCK_GPIO0_OUT &&
133+
// args[ARG_clock_mode].u_int != ETH_CLOCK_GPIO0_OUT &&
134134
args[ARG_clock_mode].u_int != ETH_CLOCK_GPIO16_OUT &&
135135
args[ARG_clock_mode].u_int != ETH_CLOCK_GPIO17_OUT) {
136136
mp_raise_ValueError(MP_ERROR_TEXT("invalid clock mode"));

ports/esp32/nimble.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#include "nimble/nimble_port_freertos.h"
3636

3737
STATIC void ble_host_task(void *param) {
38-
nimble_port_run(); //This function will return only when nimble_port_stop() is executed.
38+
nimble_port_run(); // This function will return only when nimble_port_stop() is executed.
3939
nimble_port_freertos_deinit();
4040
}
4141

ports/esp8266/esp_mphal.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const mp_print_t mp_debug_print = {NULL, mp_hal_debug_tx_strn_cooked};
4444
int uart_attached_to_dupterm;
4545

4646
void mp_hal_init(void) {
47-
//ets_wdt_disable(); // it's a pain while developing
47+
// ets_wdt_disable(); // it's a pain while developing
4848
mp_hal_rtc_init();
4949
uart_init(UART_BIT_RATE_115200, UART_BIT_RATE_115200);
5050
uart_attached_to_dupterm = 0;

ports/esp8266/esppwm.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#include "py/mpprint.h"
2222
#define PWM_DBG(...)
23-
//#define PWM_DBG(...) mp_printf(&mp_plat_print, __VA_ARGS__)
23+
// #define PWM_DBG(...) mp_printf(&mp_plat_print, __VA_ARGS__)
2424

2525
#define ICACHE_RAM_ATTR // __attribute__((section(".text")))
2626

@@ -58,15 +58,15 @@ STATIC uint8_t pwm_current_channel = 0;
5858
STATIC uint16_t pwm_gpio = 0;
5959
STATIC uint8_t pwm_channel_num = 0;
6060

61-
//XXX: 0xffffffff/(80000000/16)=35A
61+
// XXX: 0xffffffff/(80000000/16)=35A
6262
#define US_TO_RTC_TIMER_TICKS(t) \
6363
((t) ? \
6464
(((t) > 0x35A) ? \
6565
(((t) >> 2) * ((APB_CLK_FREQ >> 4) / 250000) + ((t) & 0x3) * ((APB_CLK_FREQ >> 4) / 1000000)) : \
6666
(((t) * (APB_CLK_FREQ >> 4)) / 1000000)) : \
6767
0)
6868

69-
//FRC1
69+
// FRC1
7070
#define FRC1_ENABLE_TIMER BIT7
7171

7272
typedef enum {
@@ -333,7 +333,7 @@ void ICACHE_FLASH_ATTR
333333
pwm_init(void) {
334334
uint8 i;
335335

336-
RTC_REG_WRITE(FRC1_CTRL_ADDRESS, //FRC2_AUTO_RELOAD|
336+
RTC_REG_WRITE(FRC1_CTRL_ADDRESS, // FRC2_AUTO_RELOAD|
337337
DIVDED_BY_16
338338
| FRC1_ENABLE_TIMER
339339
| TM_EDGE_INT);
@@ -379,7 +379,7 @@ pwm_add(uint8_t pin_id, uint32_t pin_mux, uint32_t pin_func) {
379379
pwm.duty[i] = 0;
380380
pwm_gpio |= (1 << pin_num[channel]);
381381
PIN_FUNC_SELECT(pin_mux, pin_func);
382-
GPIO_REG_WRITE(GPIO_PIN_ADDR(GPIO_ID_PIN(pin_num[channel])), GPIO_REG_READ(GPIO_PIN_ADDR(GPIO_ID_PIN(pin_num[channel]))) & (~GPIO_PIN_PAD_DRIVER_SET(GPIO_PAD_DRIVER_ENABLE))); //disable open drain;
382+
GPIO_REG_WRITE(GPIO_PIN_ADDR(GPIO_ID_PIN(pin_num[channel])), GPIO_REG_READ(GPIO_PIN_ADDR(GPIO_ID_PIN(pin_num[channel]))) & (~GPIO_PIN_PAD_DRIVER_SET(GPIO_PAD_DRIVER_ENABLE))); // disable open drain;
383383
pwm_channel_num++;
384384
UNLOCK_PWM(critical); // leave critical
385385
return channel;
@@ -399,7 +399,7 @@ pwm_delete(uint8 channel) {
399399
if (pwm_out_io_num[i] == channel) { // exist
400400
LOCK_PWM(critical); // enter critical
401401
pwm_out_io_num[i] = -1;
402-
pwm_gpio &= ~(1 << pin_num[channel]); //clear the bit
402+
pwm_gpio &= ~(1 << pin_num[channel]); // clear the bit
403403
for (j = i; j < pwm_channel_num - 1; j++) {
404404
pwm_out_io_num[j] = pwm_out_io_num[j + 1];
405405
pwm.duty[j] = pwm.duty[j + 1];

ports/esp8266/ets_alt_task.c

+10-10
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ bool ets_post(uint8 prio, os_signal_t sig, os_param_t param) {
101101
// queue got full
102102
emu_tasks[id].i_put = -1;
103103
}
104-
//printf("after ets_post: "); dump_task(prio, &emu_tasks[id]);
105-
//dump_tasks();
104+
// printf("after ets_post: "); dump_task(prio, &emu_tasks[id]);
105+
// dump_tasks();
106106

107107
ets_intr_unlock();
108108

@@ -142,17 +142,17 @@ bool ets_loop_iter(void) {
142142
extern uint32_t pend_flag_noise_check;
143143
uint32_t *sw_wdt = &pend_flag_noise_check - 6;
144144

145-
//static unsigned cnt;
145+
// static unsigned cnt;
146146
bool progress = false;
147147
for (volatile struct task_entry *t = emu_tasks; t < &emu_tasks[MP_ARRAY_SIZE(emu_tasks)]; t++) {
148148
if (!ets_loop_dont_feed_sw_wdt) {
149149
system_soft_wdt_feed();
150150
}
151151
ets_intr_lock();
152-
//printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
152+
// printf("etc_loop_iter: "); dump_task(t - emu_tasks + FIRST_PRIO, t);
153153
if (t->i_get != t->i_put) {
154154
progress = true;
155-
//printf("#%d Calling task %d(%p) (%x, %x)\n", cnt++,
155+
// printf("#%d Calling task %d(%p) (%x, %x)\n", cnt++,
156156
// t - emu_tasks + FIRST_PRIO, t->task, t->queue[t->i_get].sig, t->queue[t->i_get].par);
157157
int idx = t->i_get;
158158
if (t->i_put == -1) {
@@ -161,15 +161,15 @@ bool ets_loop_iter(void) {
161161
if (++t->i_get == t->qlen) {
162162
t->i_get = 0;
163163
}
164-
//ets_intr_unlock();
164+
// ets_intr_unlock();
165165
uint32_t old_sw_wdt = *sw_wdt;
166166
t->task(&t->queue[idx]);
167167
if (ets_loop_dont_feed_sw_wdt) {
168168
// Restore previous SW WDT counter, in case task fed/cleared it
169169
*sw_wdt = old_sw_wdt;
170170
}
171-
//ets_intr_lock();
172-
//printf("Done calling task %d\n", t - emu_tasks + FIRST_PRIO);
171+
// ets_intr_lock();
172+
// printf("Done calling task %d\n", t - emu_tasks + FIRST_PRIO);
173173
}
174174
ets_intr_unlock();
175175
}
@@ -221,7 +221,7 @@ bool ets_run(void) {
221221
ets_intr_unlock();
222222
while (1) {
223223
if (!ets_loop_iter()) {
224-
//printf("idle\n");
224+
// printf("idle\n");
225225
ets_intr_lock();
226226
if (idle_cb) {
227227
idle_cb(idle_arg);
@@ -234,7 +234,7 @@ bool ets_run(void) {
234234
}
235235

236236
void ets_set_idle_cb(void (*handler)(void *), void *arg) {
237-
//printf("ets_set_idle_cb(%p, %p)\n", handler, arg);
237+
// printf("ets_set_idle_cb(%p, %p)\n", handler, arg);
238238
idle_cb = handler;
239239
idle_arg = arg;
240240
}

ports/esp8266/hspi.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#define SPI_BYTE_ORDER_HIGH_TO_LOW 1
4242
#define SPI_BYTE_ORDER_LOW_TO_HIGH 0
4343

44-
#ifndef CPU_CLK_FREQ //Should already be defined in eagle_soc.h
44+
#ifndef CPU_CLK_FREQ // Should already be defined in eagle_soc.h
4545
#define CPU_CLK_FREQ (80 * 1000000)
4646
#endif
4747

ports/esp8266/machine_pin.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#define GPIO_PULL_NONE (0)
5454
#define GPIO_PULL_UP (1)
5555
// Removed in SDK 1.1.0
56-
//#define GPIO_PULL_DOWN (2)
56+
// #define GPIO_PULL_DOWN (2)
5757

5858
typedef struct _pin_irq_obj_t {
5959
mp_obj_base_t base;
@@ -442,7 +442,7 @@ STATIC const mp_rom_map_elem_t pyb_pin_locals_dict_table[] = {
442442
{ MP_ROM_QSTR(MP_QSTR_OUT), MP_ROM_INT(GPIO_MODE_OUTPUT) },
443443
{ MP_ROM_QSTR(MP_QSTR_OPEN_DRAIN), MP_ROM_INT(GPIO_MODE_OPEN_DRAIN) },
444444
{ MP_ROM_QSTR(MP_QSTR_PULL_UP), MP_ROM_INT(GPIO_PULL_UP) },
445-
//{ MP_ROM_QSTR(MP_QSTR_PULL_DOWN), MP_ROM_INT(GPIO_PULL_DOWN) },
445+
// { MP_ROM_QSTR(MP_QSTR_PULL_DOWN), MP_ROM_INT(GPIO_PULL_DOWN) },
446446

447447
// IRQ triggers, can be or'd together
448448
{ MP_ROM_QSTR(MP_QSTR_IRQ_RISING), MP_ROM_INT(GPIO_PIN_INTR_POSEDGE) },

ports/esp8266/machine_pwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ STATIC mp_obj_t pyb_pwm_deinit(mp_obj_t self_in) {
121121
STATIC MP_DEFINE_CONST_FUN_OBJ_1(pyb_pwm_deinit_obj, pyb_pwm_deinit);
122122

123123
STATIC mp_obj_t pyb_pwm_freq(size_t n_args, const mp_obj_t *args) {
124-
//pyb_pwm_obj_t *self = MP_OBJ_TO_PTR(args[0]);
124+
// pyb_pwm_obj_t *self = MP_OBJ_TO_PTR(args[0]);
125125
if (n_args == 1) {
126126
// get
127127
return MP_OBJ_NEW_SMALL_INT(pwm_get_freq(0));

ports/esp8266/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void MP_FASTCODE(nlr_jump_fail)(void *val) {
158158
}
159159
}
160160

161-
//void __assert(const char *file, int line, const char *func, const char *expr) {
161+
// void __assert(const char *file, int line, const char *func, const char *expr) {
162162
void __assert(const char *file, int line, const char *expr) {
163163
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
164164
for (;;) {

ports/esp8266/modesp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ void esp_native_code_init(void) {
284284
}
285285

286286
void *esp_native_code_commit(void *buf, size_t len, void *reloc) {
287-
//printf("COMMIT(buf=%p, len=%u, start=%08x, cur=%08x, end=%08x, erased=%08x)\n", buf, len, esp_native_code_start, esp_native_code_cur, esp_native_code_end, esp_native_code_erased);
287+
// printf("COMMIT(buf=%p, len=%u, start=%08x, cur=%08x, end=%08x, erased=%08x)\n", buf, len, esp_native_code_start, esp_native_code_cur, esp_native_code_end, esp_native_code_erased);
288288

289289
len = (len + 3) & ~3;
290290
if (esp_native_code_cur + len > esp_native_code_end) {

ports/esp8266/modmachine.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050

5151
#if MICROPY_PY_MACHINE
5252

53-
//#define MACHINE_WAKE_IDLE (0x01)
54-
//#define MACHINE_WAKE_SLEEP (0x02)
53+
// #define MACHINE_WAKE_IDLE (0x01)
54+
// #define MACHINE_WAKE_SLEEP (0x02)
5555
#define MACHINE_WAKE_DEEPSLEEP (0x04)
5656

5757
extern const mp_obj_type_t esp_wdt_type;

0 commit comments

Comments
 (0)