Skip to content

Commit 428cee4

Browse files
committed
OTA: use constexpr for buffer size
1 parent 087a3e9 commit 428cee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ota/interface/OTAInterfaceDefault.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class OTADefaultCloudProcessInterface: public OTACloudProcessInterface {
8989
// LZSS decoder
9090
LZSSDecoder decoder;
9191

92-
const size_t bufLen = 64;
93-
uint8_t buffer[64];
92+
static constexpr size_t bufLen = 64;
93+
uint8_t buffer[bufLen];
9494
} *context;
9595
};
9696

0 commit comments

Comments
 (0)