From 026fda605e03113d6e753290d65fed774418bc53 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 18 Jun 2020 22:20:20 +1000 Subject: [PATCH] tools/codeformat.py: Include extmod/{btstack,nimble} in code formatting. Signed-off-by: Damien George --- extmod/btstack/modbluetooth_btstack.c | 2 +- extmod/nimble/modbluetooth_nimble.c | 2 +- tools/codeformat.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extmod/btstack/modbluetooth_btstack.c b/extmod/btstack/modbluetooth_btstack.c index 31b2825758..206bc98f9f 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 035ec3d26f..4e0ca88efa 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 364037d2fa..653529460c 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]",