From e74cd6ae96ac6f86856b753a90e40794be3093a3 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Thu, 13 Feb 2020 10:24:29 +0300 Subject: [PATCH] pin_repository: fix compilation for devices without TLE8888 --- firmware/hw_layer/pin_repository.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/hw_layer/pin_repository.cpp b/firmware/hw_layer/pin_repository.cpp index bf02f15e81..a10bd4bcdc 100644 --- a/firmware/hw_layer/pin_repository.cpp +++ b/firmware/hw_layer/pin_repository.cpp @@ -49,6 +49,7 @@ PinRepository::PinRepository() { static PinRepository instance; +#if (BOARD_TLE8888_COUNT > 0) /* DEBUG */ extern "C" { extern void tle8888_read_reg(uint16_t reg, uint16_t *val); @@ -68,6 +69,7 @@ void tle8888_dump_regs(void) scheduleMsg(&logger, "%02x: %02x", response, data); } } +#endif static void reportPins(void) { for (unsigned int i = 0; i < getNumBrainPins(); i++) {