From 428cee49ca457044f9eafee854da492a4e29f43d Mon Sep 17 00:00:00 2001 From: pennam Date: Thu, 12 Dec 2024 11:26:22 +0100 Subject: [PATCH] OTA: use constexpr for buffer size --- src/ota/interface/OTAInterfaceDefault.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ota/interface/OTAInterfaceDefault.h b/src/ota/interface/OTAInterfaceDefault.h index 6b432f4a..b45c14dd 100644 --- a/src/ota/interface/OTAInterfaceDefault.h +++ b/src/ota/interface/OTAInterfaceDefault.h @@ -89,8 +89,8 @@ class OTADefaultCloudProcessInterface: public OTACloudProcessInterface { // LZSS decoder LZSSDecoder decoder; - const size_t bufLen = 64; - uint8_t buffer[64]; + static constexpr size_t bufLen = 64; + uint8_t buffer[bufLen]; } *context; };