increase STACK_BUF_SIZE after PR#59

* increase buffer by 64 bytes (sting added in AR usermod)
* better diag message when buffer is full
* change "Arduino  max stack" to debug message
This commit is contained in:
Frank
2023-07-27 12:45:14 +02:00
parent d23ca8beaf
commit 39db568ca9
4 changed files with 7 additions and 4 deletions

View File

@@ -149,7 +149,10 @@ bool oappend(const char* txt)
{
uint16_t len = strlen(txt);
if (olen + len >= SETTINGS_STACK_BUF_SIZE) {
DEBUG_PRINTLN(F("oappend() error: buffer full. Increase SETTINGS_STACK_BUF_SIZE."));
USER_PRINT(F("oappend() error: buffer full. Increase SETTINGS_STACK_BUF_SIZE for "));
USER_PRINTF("%2u bytes \t\"", len /*1 + olen + len - SETTINGS_STACK_BUF_SIZE*/);
USER_PRINT(txt);
USER_PRINTLN(F("\""));
return false; // buffer full
}
strcpy(obuf + olen, txt);