One function adds 21,736 bytes to total flash count?
Also, it adds 1226 for ram usage?
Before
Binary sketch size: 51,172 bytes (of a 131,072 byte maximum)
Estimated memory use: 4,680 bytes (of a 16,384 byte maximum)
Using
sprintf(str,"%d",abs(networktime));
After
Binary sketch size: 72,908 bytes (of a 131,072 byte maximum)
Estimated memory use: 5,908 bytes (of a 16,384 byte maximum)
Code snippet- counts the number of chars in a integer
win xp/sp3
beta12
Also, it adds 1226 for ram usage?
Before
Binary sketch size: 51,172 bytes (of a 131,072 byte maximum)
Estimated memory use: 4,680 bytes (of a 16,384 byte maximum)
Using
sprintf(str,"%d",abs(networktime));
After
Binary sketch size: 72,908 bytes (of a 131,072 byte maximum)
Estimated memory use: 5,908 bytes (of a 16,384 byte maximum)
Code snippet- counts the number of chars in a integer
Code:
long x = 0;
char str[20];
sprintf(str,"%d",abs(networktime));
x = (strlen(str));
Serial.println(x);
win xp/sp3
beta12
Last edited: