Option for checking free memory in TS

This commit is contained in:
Josh Stewart 2014-05-12 21:27:58 +10:00
parent 1275901466
commit e50d30f4fe
1 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,12 @@ void sendValues(int length)
//Need to split the int loopsPerSecond value into 2 bytes
response[24] = highByte(currentStatus.loopsPerSecond); //(byte)((currentStatus.loopsPerSecond >> 8) & 0xFF);
response[25] = lowByte(currentStatus.loopsPerSecond); //(byte)(currentStatus.loopsPerSecond & 0xFF);
/*
//The following can be used to show the amount of free memory
int mem = freeRam();
response[24] = highByte(mem); //(byte)((currentStatus.loopsPerSecond >> 8) & 0xFF);
response[25] = lowByte(mem);
*/
Serial.write(response, (size_t)packetSize);
Serial.flush();