From 0899765c07f7923f538e8445c558498f7a308295 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Fri, 17 Feb 2023 13:59:18 +0100 Subject: [PATCH] Don't declare variables that are unused in certain firmware configurations --- firmware/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/main.c b/firmware/main.c index 0fa2ba9..c993872 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -2016,8 +2016,12 @@ void main(void) keyscan_idle(); +#if CONFIG_USB_STACK __bit usb_initialized = 0; +#endif +#if CONFIG_STOCK_FW __bit user_app_checked = 0; +#endif uint16_t ticks = 0; while (1) { // execute I2C system/flashing commands, once the I2C