diff options
| author | stijn | 2020-04-16 09:13:57 +0200 |
|---|---|---|
| committer | Damien George | 2020-04-23 11:24:25 +1000 |
| commit | 84fa3312cfa7d2237d4b56952f2cd6e3591210c4 (patch) | |
| tree | dc2b3e67bad9969fc5792ca0822798d58addf174 /ports/zephyr | |
| parent | d6243568a05d423b58522435c3779975acbf56dd (diff) | |
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.
Diffstat (limited to 'ports/zephyr')
| -rw-r--r-- | ports/zephyr/main.c | 2 | ||||
| -rw-r--r-- | ports/zephyr/modusocket.c | 2 | ||||
| -rw-r--r-- | ports/zephyr/modzephyr.c | 2 | ||||
| -rw-r--r-- | ports/zephyr/modzsensor.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c index c8f9601c3..e304dfd25 100644 --- a/ports/zephyr/main.c +++ b/ports/zephyr/main.c @@ -174,7 +174,7 @@ void gc_collect(void) { gc_collect_start(); gc_collect_root(&dummy, ((mp_uint_t)MP_STATE_THREAD(stack_top) - (mp_uint_t)&dummy) / sizeof(mp_uint_t)); gc_collect_end(); - //gc_dump_info(); + // gc_dump_info(); } #if !MICROPY_READER_VFS diff --git a/ports/zephyr/modusocket.c b/ports/zephyr/modusocket.c index 09d875400..6c900753c 100644 --- a/ports/zephyr/modusocket.c +++ b/ports/zephyr/modusocket.c @@ -94,7 +94,7 @@ STATIC mp_obj_t format_inet_addr(struct sockaddr *addr, mp_obj_t port) { tuple->items[0] = mp_obj_new_str(buf, strlen(buf)); // We employ the fact that port offset is the same for IPv4 & IPv6 // not filled in - //tuple->items[1] = mp_obj_new_int(ntohs(((struct sockaddr_in*)addr)->sin_port)); + // tuple->items[1] = mp_obj_new_int(ntohs(((struct sockaddr_in*)addr)->sin_port)); tuple->items[1] = port; if (addr->sa_family == AF_INET6) { diff --git a/ports/zephyr/modzephyr.c b/ports/zephyr/modzephyr.c index 2d03ac283..d4ee610b2 100644 --- a/ports/zephyr/modzephyr.c +++ b/ports/zephyr/modzephyr.c @@ -70,7 +70,7 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_stacks_analyze_obj, mod_stacks_analyze); #ifdef CONFIG_NET_SHELL -//int net_shell_cmd_iface(int argc, char *argv[]); +// int net_shell_cmd_iface(int argc, char *argv[]); STATIC mp_obj_t mod_shell_net_iface(void) { net_shell_cmd_iface(0, NULL); diff --git a/ports/zephyr/modzsensor.c b/ports/zephyr/modzsensor.c index 1dbf34568..b01ce2693 100644 --- a/ports/zephyr/modzsensor.c +++ b/ports/zephyr/modzsensor.c @@ -143,4 +143,4 @@ const mp_obj_module_t mp_module_zsensor = { .globals = (mp_obj_dict_t *)&mp_module_zsensor_globals, }; -#endif //MICROPY_PY_UHASHLIB +#endif // MICROPY_PY_UHASHLIB |
