Skip to content

Commit 726eace

Browse files
author
Marcin Radomski
committed
Do not fail on trailing data in read_int
Some tests depend on that behavior.
1 parent c0032c9 commit 726eace

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

features/cellular/framework/AT/ATHandler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,6 @@ int32_t ATHandler::read_int()
734734
if (*buff == '\0') {
735735
return -1; // empty string
736736
}
737-
if (*endptr != '\0') {
738-
return -1; // trailing garbage
739-
}
740737
return (int32_t) result;
741738
}
742739

0 commit comments

Comments
 (0)