trigger signal debug pins - logic level output #2959
This commit is contained in:
parent
c513e976ed
commit
f3b0310058
|
@ -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) {
|
void brain_pin_markUnused(brain_pin_e brainPin DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
#if EFI_PROD_CODE
|
|
||||||
int index = brainPin_to_index(brainPin);
|
int index = brainPin_to_index(brainPin);
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (getBrainUsedPin(index) != nullptr)
|
if (getBrainUsedPin(index PASS_ENGINE_PARAMETER_SUFFIX) != nullptr)
|
||||||
pinRepository.totalPinsUsed--;
|
pinRepository.totalPinsUsed--;
|
||||||
getBrainUsedPin(index) = nullptr;
|
getBrainUsedPin(index PASS_ENGINE_PARAMETER_SUFFIX) = nullptr;
|
||||||
#endif /* EFI_PROD_CODE */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if EFI_PROD_CODE
|
#if EFI_PROD_CODE
|
||||||
|
|
Loading…
Reference in New Issue