Small memory reduction in AE code

This commit is contained in:
Josh Stewart 2022-11-07 14:49:49 +11:00
parent ad7d4f6ae9
commit a71dcffe9f
2 changed files with 2 additions and 4 deletions

View File

@ -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.

View File

@ -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)
{