Browse Source

tools/codeformat.py: Include extmod/{btstack,nimble} in code formatting.

Signed-off-by: Damien George <damien@micropython.org>
pull/6169/head
Damien George 4 years ago
parent
commit
026fda605e
  1. 2
      extmod/btstack/modbluetooth_btstack.c
  2. 2
      extmod/nimble/modbluetooth_nimble.c
  3. 2
      tools/codeformat.py

2
extmod/btstack/modbluetooth_btstack.c

@ -35,7 +35,7 @@
#include "lib/btstack/src/btstack.h"
#define DEBUG_EVENT_printf(...) //printf(__VA_ARGS__)
#define DEBUG_EVENT_printf(...) // printf(__VA_ARGS__)
#ifndef MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME
#define MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME "MPY BTSTACK"

2
extmod/nimble/modbluetooth_nimble.c

@ -45,7 +45,7 @@
#define MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME "MPY NIMBLE"
#endif
#define DEBUG_EVENT_printf(...) //printf(__VA_ARGS__)
#define DEBUG_EVENT_printf(...) // printf(__VA_ARGS__)
#define ERRNO_BLUETOOTH_NOT_ACTIVE MP_ENODEV

2
tools/codeformat.py

@ -36,6 +36,8 @@ import subprocess
PATHS = [
# C
"extmod/*.[ch]",
"extmod/btstack/*.[ch]",
"extmod/nimble/*.[ch]",
"lib/netutils/*.[ch]",
"lib/timeutils/*.[ch]",
"lib/utils/*.[ch]",

Loading…
Cancel
Save