Skip to content

Commit 793b784

Browse files
committed
MCU8MASS-1943 Remove log when extracting values from command response in case it is called from an ISR
1 parent 5cbe325 commit 793b784

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sequans_controller.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -863,13 +863,10 @@ bool SequansControllerClass::extractValueFromCommandResponse(
863863
*first_carriage_return = 0;
864864
}
865865

866-
size_t value_length = strlen(start_value_ptr);
867866
// We compare inclusive for value length as we want to take the null
868867
// termination into consideration. So the buffer size has be
869868
// value_length + 1
870-
if (value_length >= buffer_size) {
871-
Log.error("Buffer too small for value when extracting value for "
872-
"command response, increase the buffer size");
869+
if (strlen(start_value_ptr) >= buffer_size) {
873870
return false;
874871
}
875872

0 commit comments

Comments
 (0)