From e65e24d2fa97c57321168a2839de4c54fd162675 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Wed, 16 Jun 2021 17:59:08 +0100 Subject: [PATCH] Reduce MGOS_DEBUG_TMP_BUF_SIZE to 128 Reduce stack usage --- include/mgos_debug.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mgos_debug.h b/include/mgos_debug.h index 2c43ff500..06f8cd6a7 100644 --- a/include/mgos_debug.h +++ b/include/mgos_debug.h @@ -30,7 +30,9 @@ extern "C" { #define MGOS_DEBUG_UART_BAUD_RATE 115200 #endif -#define MGOS_DEBUG_TMP_BUF_SIZE 256 +#ifndef MGOS_DEBUG_TMP_BUF_SIZE +#define MGOS_DEBUG_TMP_BUF_SIZE 128 +#endif /* * Arguments for the `MGOS_EVENT_LOG` event, see `mgos_event_add_handler()`.