Skip to content

Commit

Permalink
OTA: use constexpr for buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Dec 12, 2024
1 parent 087a3e9 commit 428cee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ota/interface/OTAInterfaceDefault.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 428cee4

Please sign in to comment.