From b03728853ed8ebeed23d6f8bb6cc7a6f1e8bcd4a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Jan 2024 08:31:15 +1100 Subject: [PATCH] Tools: allow CPUInfo to build on systems without ESC telem --- Tools/CPUInfo/CPUInfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/CPUInfo/CPUInfo.cpp b/Tools/CPUInfo/CPUInfo.cpp index 05409f1418..3e99d61982 100644 --- a/Tools/CPUInfo/CPUInfo.cpp +++ b/Tools/CPUInfo/CPUInfo.cpp @@ -46,7 +46,9 @@ static uint32_t sysclk = 0; static EKF_Maths ekf; HAL_Semaphore sem; +#if HAL_WITH_ESC_TELEM AP_ESC_Telem telem; +#endif void setup() { #ifdef DISABLE_CACHES