Skip to content

Commit ff2ad2d

Browse files
committed
skip all spaces
1 parent 744fb98 commit ff2ad2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SparkFun_u-blox_SARA-R5_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5838,7 +5838,7 @@ SARA_R5_error_t SARA_R5::parseSocketCloseIndication(String *closeIndication)
58385838

58395839
search = closeIndication->indexOf("UUSOCL:");
58405840
search += 7;
5841-
if (closeIndication->charAt(search) == ' ') search ++;
5841+
while (closeIndication->charAt(search) == ' ') search ++; // skip spaces
58425842

58435843
// Socket will be first integer, should be single-digit number between 0-6:
58445844
socket = closeIndication->substring(search, search + 1).toInt();

0 commit comments

Comments
 (0)