mirror of https://github.com/ARMmbed/mbed-os.git
Do not fail on trailing data in read_int
Some tests depend on that behavior.pull/11248/head
parent
c0032c9055
commit
726eace763
|
@ -734,9 +734,6 @@ int32_t ATHandler::read_int()
|
|||
if (*buff == '\0') {
|
||||
return -1; // empty string
|
||||
}
|
||||
if (*endptr != '\0') {
|
||||
return -1; // trailing garbage
|
||||
}
|
||||
return (int32_t) result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue