From 63a3301696dc42c99ce18d51d5c87177b2c0d863 Mon Sep 17 00:00:00 2001 From: h2zero Date: Wed, 12 Jun 2024 09:59:01 -0600 Subject: [PATCH] Add missing const in NimBLEConnInfo. --- src/NimBLEConnInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEConnInfo.h b/src/NimBLEConnInfo.h index 7a9b4c6..d41a801 100644 --- a/src/NimBLEConnInfo.h +++ b/src/NimBLEConnInfo.h @@ -53,6 +53,6 @@ public: bool isAuthenticated() const { return (m_desc.sec_state.authenticated == 1); } /** @brief Gets the key size used to encrypt the connection */ - uint8_t getSecKeySize() { return m_desc.sec_state.key_size; } + uint8_t getSecKeySize() const { return m_desc.sec_state.key_size; } }; #endif