From 2a4f8646a6ddd5f92d58330603aabdd7bea4e19a Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 15 Dec 2025 12:42:48 +0100 Subject: [PATCH 1/4] MsgPack: set default log level to WARN to avoid CI issues Not setting the default log level causes a warning on every CI run. Setting it to WARN avoids the warning and is a reasonable default. Signed-off-by: Luca Burelli --- src/decoder.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/decoder.h b/src/decoder.h index c969f50..34e5961 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -6,12 +6,14 @@ This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. - */ #ifndef RPCLITE_DECODER_H #define RPCLITE_DECODER_H +// MsgPack log level +#define DEBUGLOG_DEFAULT_LOG_LEVEL_WARN + #include "MsgPack.h" #include "transport.h" #include "rpclite_utils.h" @@ -343,4 +345,4 @@ class RpcDecoder { }; -#endif \ No newline at end of file +#endif From fb521ebf712a390ff364249a56db99f8898af8b1 Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 15 Dec 2025 12:48:19 +0100 Subject: [PATCH 2/4] decoder.h: warning cleanup Fix a compiler warning about a possibly uninitialized variable (the compiler cannot prove that the variable is always initialized before use, even though the code logic guarantees it). Signed-off-by: Luca Burelli --- src/decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/decoder.h b/src/decoder.h index 34e5961..d0716ca 100644 --- a/src/decoder.h +++ b/src/decoder.h @@ -208,7 +208,7 @@ class RpcDecoder { size_t bytes_checked = 0; size_t container_size; - int type; + int type = NO_MSG; MsgPack::Unpacker unpacker; while (bytes_checked + offset < _bytes_stored){ From 151f39b1e9ede40c58569690ea5c224b5b783ee8 Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Mon, 15 Dec 2025 12:42:48 +0100 Subject: [PATCH 3/4] MsgPack: set default log level to WARN to avoid CI issues (2) Missed this spot while setting the default log level for MsgPack to avoid a warning on every CI run. Signed-off-by: Luca Burelli --- src/error.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/error.h b/src/error.h index c98cb7d..d177c52 100644 --- a/src/error.h +++ b/src/error.h @@ -14,6 +14,9 @@ #include +// MsgPack log level +#define DEBUGLOG_DEFAULT_LOG_LEVEL_WARN + #include "MsgPack.h" #define NO_ERR 0x00 @@ -43,4 +46,4 @@ struct RpcError { MSGPACK_DEFINE(code, traceback); // -> [code, traceback] }; -#endif \ No newline at end of file +#endif From 986cb160651b12810a3a01c8c478cdd56f4c0503 Mon Sep 17 00:00:00 2001 From: Lucio Rossi Date: Mon, 15 Dec 2025 17:46:38 +0100 Subject: [PATCH 4/4] ver 0.2.1 --- library.json | 2 +- library.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.json b/library.json index 98abd73..9666cda 100644 --- a/library.json +++ b/library.json @@ -11,7 +11,7 @@ "url": "https://github.com/eigen-value", "maintainer": true }, - "version": "0.2.0", + "version": "0.2.1", "license": "MPL2.0", "frameworks": "arduino", "platforms": "*", diff --git a/library.properties b/library.properties index 307032e..de0055a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Arduino_RPClite -version=0.2.0 +version=0.2.1 author=Arduino, Lucio Rossi (eigen-value) maintainer=Arduino, Lucio Rossi (eigen-value) sentence=A MessagePack RPC library for Arduino