From 0677c3e703d3504137d2c2b21ebac87880a282c2 Mon Sep 17 00:00:00 2001 From: gagarinlg Date: Sun, 24 Apr 2022 19:57:26 +0200 Subject: [PATCH] fix T8 compilation --- radio/src/targets/common/arm/stm32/board_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/targets/common/arm/stm32/board_common.h b/radio/src/targets/common/arm/stm32/board_common.h index fa9b48f9c..2e9337191 100644 --- a/radio/src/targets/common/arm/stm32/board_common.h +++ b/radio/src/targets/common/arm/stm32/board_common.h @@ -151,7 +151,7 @@ void delay_ms(uint32_t count); #define ROTENC_HIGHSPEED 50 #define ROTENC_DELAY_MIDSPEED 32 #define ROTENC_DELAY_HIGHSPEED 16 -#elif defined(RADIO_T8) +#elif defined(RADIO_T8) && defined(__cplusplus) constexpr uint8_t rotencSpeed = 1; #endif