Don't declare variables that are unused in certain firmware configurations

This commit is contained in:
Ondrej Jirman 2023-02-17 13:59:18 +01:00
parent 073505f31f
commit 0899765c07

View File

@ -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