From d0720620e83bb7517b2d98b459ec594be41c038c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 21 Sep 2022 17:22:31 +0200 Subject: [PATCH 1/2] fix compiler warning --- src/modules/CannedMessageModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/CannedMessageModule.h b/src/modules/CannedMessageModule.h index 33f60dd61..784e40fc1 100644 --- a/src/modules/CannedMessageModule.h +++ b/src/modules/CannedMessageModule.h @@ -74,7 +74,7 @@ class CannedMessageModule : int currentMessageIndex = -1; cannedMessageModuleRunState runState = CANNED_MESSAGE_RUN_STATE_INACTIVE; char payload; - int cursor = 0; + unsigned int cursor = 0; String freetext = ""; // Text Buffer for Freetext Editor char messageStore[CANNED_MESSAGE_MODULE_MESSAGES_SIZE+1]; From fae6693f8f183f24ff6c195cb6c988988992fbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Fri, 23 Sep 2022 12:37:59 +0200 Subject: [PATCH 2/2] fix (or better suppress) another compiler warning --- arch/esp32/esp32.ini | 1 + arch/esp32/esp32s3.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/esp32/esp32.ini b/arch/esp32/esp32.ini index 49ff1054d..39e9f7d84 100644 --- a/arch/esp32/esp32.ini +++ b/arch/esp32/esp32.ini @@ -23,6 +23,7 @@ build_flags = -DCONFIG_BT_NIMBLE_ENABLED -DCONFIG_NIMBLE_CPP_LOG_LEVEL=2 -DCONFIG_BT_NIMBLE_MAX_CCCDS=20 + -DESP_OPENSSL_SUPPRESS_LEGACY_WARNING lib_deps = ${arduino_base.lib_deps} diff --git a/arch/esp32/esp32s3.ini b/arch/esp32/esp32s3.ini index 4e2817184..4f41cd05b 100644 --- a/arch/esp32/esp32s3.ini +++ b/arch/esp32/esp32s3.ini @@ -23,6 +23,7 @@ build_flags = -DCONFIG_BT_NIMBLE_ENABLED -DCONFIG_NIMBLE_CPP_LOG_LEVEL=2 -DCONFIG_BT_NIMBLE_MAX_CCCDS=20 + -DESP_OPENSSL_SUPPRESS_LEGACY_WARNING lib_deps = ${arduino_base.lib_deps}