GM SENT fuel pressure sensor #6997

only:changelog
This commit is contained in:
rusefillc 2024-11-26 17:35:57 -05:00
parent fddf54c9d9
commit 38546c6df5
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@ Release template (copy/paste this for new release):
### Added ### Added
- Flex Fuel sensor settings should be under "Fuel sensor" #7097 - Flex Fuel sensor settings should be under "Fuel sensor" #7097
- GM SENT fuel pressure sensor #6997
### Fixed ### Fixed
- Critical error when using big values on Boost Control Open Loop with Y axis as MAP #7093 - Critical error when using big values on Boost Control Open Loop with Y axis as MAP #7093

View File

@ -71,6 +71,7 @@ float decodeTpsSentValue(float sentValue) {
} }
} }
#if EFI_PROD_CODE
void sentTpsDecode(SentInput sentCh) { void sentTpsDecode(SentInput sentCh) {
if ((!isDigitalTps1()) || (engineConfiguration->EtbSentInput != sentCh)) { if ((!isDigitalTps1()) || (engineConfiguration->EtbSentInput != sentCh)) {
return; return;
@ -81,6 +82,7 @@ void sentTpsDecode(SentInput sentCh) {
sentTps.setValidValue(tpsValue, getTimeNowNt()); sentTps.setValidValue(tpsValue, getTimeNowNt());
} }
#endif // EFI_PROD_CODE
bool isDigitalTps1() { bool isDigitalTps1() {
return (engineConfiguration->sentEtbType != SentEtbType::NONE); return (engineConfiguration->sentEtbType != SentEtbType::NONE);