Skip to content

Commit 3cf5141

Browse files
committed
Fix bug in coordinateIdentifyInputType for DD-MM-SS.ssss
1 parent d1e3bd2 commit 3cf5141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/System.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ CoordinateInputType coordinateIdentifyInputType(const char *userEntryOriginal, d
10201020
token = strtok(nullptr, "-");
10211021

10221022
// Find '.'
1023-
char *decimalPtr = strchr(userEntry, '.');
1023+
char *decimalPtr = strchr(token, '.'); // Use token, not userEntry, as the dashes are now NULL
10241024
if (decimalPtr == nullptr)
10251025
coordinateInputType = COORDINATE_INPUT_TYPE_DD_MM_SS_DASH_NO_DECIMAL;
10261026

0 commit comments

Comments
 (0)