From e8374ce36729bbd4905fe37332877ffa8d08e387 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 16 May 2022 16:35:45 -0400 Subject: [PATCH] initial_pins: Add compile time check to reduce binary size when not in use Signed-off-by: Kevin O'Connor --- src/initial_pins.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/initial_pins.c b/src/initial_pins.c index cd47850..af01b3a 100644 --- a/src/initial_pins.c +++ b/src/initial_pins.c @@ -16,6 +16,8 @@ DECL_CTR("DECL_INITIAL_PINS " __stringify(CONFIG_INITIAL_PINS)); void initial_pins_setup(void) { + if (sizeof(CONFIG_INITIAL_PINS) <= 1) + return; int i; for (i=0; i