trigger signal debug pins - logic level output #2959

This commit is contained in:
Andrey 2021-07-15 01:49:07 -04:00
parent c513e976ed
commit f3b0310058
1 changed files with 2 additions and 4 deletions

View File

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