From ade1b4d4b1cd44ff84a6c9af32aeb6eb50d476a2 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Tue, 9 Jun 2015 23:38:41 +1000 Subject: [PATCH] Fix faulty mapping on TPS --- speeduino.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speeduino.ino b/speeduino.ino index 6d6a5313..c0fffed6 100644 --- a/speeduino.ino +++ b/speeduino.ino @@ -342,7 +342,7 @@ void loop() currentStatus.TPSlast_time = currentStatus.TPS_time; int tpsTemp = analogRead(pinTPS); currentStatus.tpsADC = fastMap1023toX(tpsTemp, 0, 1023, 0, 255); //Get the current raw TPS ADC value and map it into a byte - currentStatus.TPS = fastMap1023toX(tpsTemp, configPage1.tpsMin, configPage1.tpsMax, 0, 100); //Take the raw TPS ADC value and convert it into a TPS% based on the calibrated values + currentStatus.TPS = map(tpsTemp, configPage1.tpsMin, configPage1.tpsMax, 0, 100); //Take the raw TPS ADC value and convert it into a TPS% based on the calibrated values currentStatus.TPS_time = currentLoopTime; }