From f3b0310058461717bb0d2d8fde8c03c0536bb448 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 15 Jul 2021 01:49:07 -0400 Subject: [PATCH] trigger signal debug pins - logic level output #2959 --- firmware/hw_layer/pin_repository.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/pin_repository.cpp b/firmware/hw_layer/pin_repository.cpp index d4844f3cbc..2c8aaa2ff2 100644 --- a/firmware/hw_layer/pin_repository.cpp +++ b/firmware/hw_layer/pin_repository.cpp @@ -94,15 +94,13 @@ bool brain_pin_markUsed(brain_pin_e brainPin, const char *msg DECLARE_ENGINE_PAR */ void brain_pin_markUnused(brain_pin_e brainPin DECLARE_ENGINE_PARAMETER_SUFFIX) { -#if EFI_PROD_CODE int index = brainPin_to_index(brainPin); if (index < 0) return; - if (getBrainUsedPin(index) != nullptr) + if (getBrainUsedPin(index PASS_ENGINE_PARAMETER_SUFFIX) != nullptr) pinRepository.totalPinsUsed--; - getBrainUsedPin(index) = nullptr; -#endif /* EFI_PROD_CODE */ + getBrainUsedPin(index PASS_ENGINE_PARAMETER_SUFFIX) = nullptr; } #if EFI_PROD_CODE