only:mre_f4

This commit is contained in:
rusefi 2023-03-01 16:29:24 -05:00
parent 6dc2dcc357
commit a355a5074b
1 changed files with 2 additions and 2 deletions

View File

@ -59,10 +59,10 @@ void sentTpsDecode() {
float tpsValue; float tpsValue;
switch (engineConfiguration->sentEtbType) { switch (engineConfiguration->sentEtbType) {
case SentEtbType::GM_TYPE_1: case SentEtbType::GM_TYPE_1:
tpsValue = interpolateClamped(0, 0xE48, 100, 0x1A0, sentValue); tpsValue = interpolateClamped(/*x1*/0xE48, /*y1*/0, /*x2*/0x1A0, /*y2*/100, /*x*/sentValue);
break; break;
default: default:
tpsValue = interpolateClamped(0, engineConfiguration->customSentTpsMin, 100, engineConfiguration->customSentTpsMax, sentValue); tpsValue = interpolateClamped(/*x1*/engineConfiguration->customSentTpsMin, /*y1*/0, /*x2*/engineConfiguration->customSentTpsMax, /*y2*/100, /*x*/sentValue);
break; break;
} }