diff --git a/speeduino/corrections.h b/speeduino/corrections.h index e25fd208..f87d2aab 100644 --- a/speeduino/corrections.h +++ b/speeduino/corrections.h @@ -40,8 +40,6 @@ int8_t correctionKnock(int8_t advance); uint16_t correctionsDwell(uint16_t dwell); -extern int MAP_rateOfChange; -extern int TPS_rateOfChange; extern byte activateMAPDOT; //The mapDOT value seen when the MAE was activated. extern byte activateTPSDOT; //The tpsDOT value seen when the MAE was activated. diff --git a/speeduino/corrections.ino b/speeduino/corrections.ino index 42b9f518..75e97707 100644 --- a/speeduino/corrections.ino +++ b/speeduino/corrections.ino @@ -38,8 +38,6 @@ long PID_O2, PID_output, PID_AFRTarget; */ PID egoPID(&PID_O2, &PID_output, &PID_AFRTarget, configPage6.egoKP, configPage6.egoKI, configPage6.egoKD, REVERSE); -int MAP_rateOfChange; -int TPS_rateOfChange; byte activateMAPDOT; //The mapDOT value seen when the MAE was activated. byte activateTPSDOT; //The tpsDOT value seen when the MAE was activated. @@ -289,6 +287,8 @@ uint16_t correctionAccel(void) int16_t accelValue = 100; int16_t MAP_change = 0; int16_t TPS_change = 0; + int16_t MAP_rateOfChange = 0; + int16_t TPS_rateOfChange = 0; if(configPage2.aeMode == AE_MODE_MAP) {