Minor RAM cleanup
This commit is contained in:
parent
044f1a0e83
commit
c7063eb268
|
@ -108,11 +108,11 @@ void canCommand()
|
|||
break;
|
||||
|
||||
case 's': // send the "a" stream code version
|
||||
CANSerial.write("Speeduino csx02018.7");
|
||||
CANSerial.print(F("Speeduino csx02018.7"));
|
||||
break;
|
||||
|
||||
case 'S': // send code version
|
||||
CANSerial.write("Speeduino 2018.7-dev");
|
||||
CANSerial.print(F("Speeduino 2018.7-dev"));
|
||||
break;
|
||||
|
||||
case 'Q': // send code version
|
||||
|
|
|
@ -32,7 +32,6 @@ bool cmdPending = false; /**< Whether or not a serial request has only been part
|
|||
bool chunkPending = false; /**< Whether or not the current chucnk write is complete or not */
|
||||
uint16_t chunkComplete = 0; /**< The number of bytes in a chunk write that have been written so far */
|
||||
uint16_t chunkSize = 0; /**< The complete size of the requested chunk write */
|
||||
int valueOffset; /**< THe memory offset within a given page for a value to be read from or written to. Note that we cannot use 'offset' as a variable name, it is a reserved word for several teensy libraries */
|
||||
byte tsCanId = 0; // current tscanid requested
|
||||
|
||||
const char pageTitles[] PROGMEM //This is being stored in the avr flash instead of SRAM which there is not very much of
|
||||
|
|
|
@ -21,7 +21,7 @@ A full copy of the license may be found in the projects root directory
|
|||
*/
|
||||
void command()
|
||||
{
|
||||
|
||||
int valueOffset; /**< THe memory offset within a given page for a value to be read from or written to. Note that we cannot use 'offset' as a variable name, it is a reserved word for several teensy libraries */
|
||||
if (cmdPending == false) { currentCommand = Serial.read(); }
|
||||
|
||||
switch (currentCommand)
|
||||
|
@ -101,7 +101,7 @@ void command()
|
|||
break;
|
||||
|
||||
case 'F': // send serial protocol version
|
||||
Serial.print("001");
|
||||
Serial.print(F("001"));
|
||||
break;
|
||||
|
||||
case 'H': //Start the tooth logger
|
||||
|
@ -394,7 +394,7 @@ void command()
|
|||
for (int x = 0; x < 10; x++)
|
||||
{
|
||||
Serial.print(configPage4.wueBins[x]);
|
||||
Serial.print(", ");
|
||||
Serial.print(F(", "));
|
||||
Serial.println(configPage2.wueValues[x]);
|
||||
}
|
||||
Serial.flush();
|
||||
|
@ -1078,7 +1078,7 @@ void sendPageASCII()
|
|||
for (byte x = 10; x; x--)// The x between the ';' has the same representation as the "x != 0" test or comparision
|
||||
{
|
||||
Serial.print(configPage2.wueValues[10 - x]);// This displays the values horizantially on the screen
|
||||
Serial.print(' ');
|
||||
Serial.print(F(" "));
|
||||
}
|
||||
Serial.println();
|
||||
for (pnt_configPage = (byte *)&configPage2.wueValues[9] + 1; pnt_configPage < &configPage2.inj1Ang; pnt_configPage = (byte *)pnt_configPage + 1) {
|
||||
|
|
|
@ -101,7 +101,7 @@ struct Schedule {
|
|||
volatile byte schedulesSet; //A counter of how many times the schedule has been set
|
||||
void (*StartCallback)(); //Start Callback function for schedule
|
||||
void (*EndCallback)(); //Start Callback function for schedule
|
||||
volatile unsigned long startTime; //The system time (in uS) that the schedule started
|
||||
volatile unsigned long startTime; /**< The system time (in uS) that the schedule started, used by the overdwell protection in timers.ino */
|
||||
volatile uint16_t startCompare; //The counter value of the timer when this will start
|
||||
volatile uint16_t endCompare;
|
||||
|
||||
|
|
Loading…
Reference in New Issue