Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
MathewHDYT committed Aug 18, 2023
1 parent 41fe6b3 commit 4ab6766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ThingsBoard.h
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,9 @@ class ThingsBoardSized {
return false;
}

const size_t jsonSize = strlen(json);
#if !THINGSBOARD_ENABLE_STREAM_UTILS
const size_t currentBufferSize = m_client.getBufferSize();
const size_t jsonSize = strlen(json);

if (currentBufferSize < jsonSize) {
char message[Helper::detectSize(INVALID_BUFFER_SIZE, currentBufferSize, jsonSize)];
Expand Down

0 comments on commit 4ab6766

Please sign in to comment.