summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-18 22:20:20 +1000
committerDamien George <damien@micropython.org>2020-06-18 22:20:20 +1000
commit026fda605e03113d6e753290d65fed774418bc53 (patch)
tree8a8c4c6a8e00e051c49f468ac7d41293f81e5a36
parentce02d5e3486ca0665e175e9690be910a06392edf (diff)
tools/codeformat.py: Include extmod/{btstack,nimble} in code formatting.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--extmod/btstack/modbluetooth_btstack.c2
-rw-r--r--extmod/nimble/modbluetooth_nimble.c2
-rwxr-xr-xtools/codeformat.py2
3 files changed, 4 insertions, 2 deletions
diff --git a/extmod/btstack/modbluetooth_btstack.c b/extmod/btstack/modbluetooth_btstack.c
index 31b282575..206bc98f9 100644
--- a/extmod/btstack/modbluetooth_btstack.c
+++ b/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"
diff --git a/extmod/nimble/modbluetooth_nimble.c b/extmod/nimble/modbluetooth_nimble.c
index 035ec3d26..4e0ca88ef 100644
--- a/extmod/nimble/modbluetooth_nimble.c
+++ b/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
diff --git a/tools/codeformat.py b/tools/codeformat.py
index 364037d2f..653529460 100755
--- a/tools/codeformat.py
+++ b/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]",