an attempt to reduce some stack memory. No need for the debug printing to be 512 bytes. Now limited to 200 chars

This commit is contained in:
iceman1001 2023-12-14 23:29:43 +01:00
commit 95d1d5646f
5 changed files with 22 additions and 15 deletions

View file

@ -328,9 +328,9 @@ uint8_t emlGet(uint8_t *out, uint32_t offset, uint32_t length) {
// get the address of the ToSend buffer. Allocate part of Bigbuf for it, if not yet done
tosend_t *get_tosend(void) {
if (toSend.buf == NULL)
if (toSend.buf == NULL) {
toSend.buf = BigBuf_malloc(TOSEND_BUFFER_SIZE);
}
return &toSend;
}