From ccd10c9fd99df0184391744397890d14b102a771 Mon Sep 17 00:00:00 2001 From: oarcher Date: Sun, 12 May 2024 17:00:24 +0200 Subject: [PATCH] static const --- esphome/components/gsm/gsm_component.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/esphome/components/gsm/gsm_component.cpp b/esphome/components/gsm/gsm_component.cpp index 5370abd6bc..c032056d3e 100644 --- a/esphome/components/gsm/gsm_component.cpp +++ b/esphome/components/gsm/gsm_component.cpp @@ -17,11 +17,11 @@ #include #include "sdkconfig.h" -#define CONFIG_MODEM_UART_RX_BUFFER_SIZE 1024 -#define CONFIG_MODEM_UART_TX_BUFFER_SIZE 512 -#define CONFIG_MODEM_UART_EVENT_QUEUE_SIZE 30 -#define CONFIG_MODEM_UART_EVENT_TASK_STACK_SIZE 2048 -#define CONFIG_MODEM_UART_EVENT_TASK_PRIORITY 5 +static const size_t CONFIG_MODEM_UART_RX_BUFFER_SIZE = 1024; +static const size_t CONFIG_MODEM_UART_TX_BUFFER_SIZE = 512; +static const uint8_t CONFIG_MODEM_UART_EVENT_QUEUE_SIZE = 30; +static const size_t CONFIG_MODEM_UART_EVENT_TASK_STACK_SIZE = 2048; +static const uint8_t CONFIG_MODEM_UART_EVENT_TASK_PRIORITY = 5; namespace esphome { namespace gsm { @@ -366,4 +366,4 @@ void GSMComponent::powerdown(void) { } // namespace gsm } // namespace esphome -#endif \ No newline at end of file +#endif