Option for checking free memory in TS
This commit is contained in:
parent
1275901466
commit
e50d30f4fe
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue