Skip to content
Snippets Groups Projects
Commit 6e886792 authored by Lorenz Meier's avatar Lorenz Meier
Browse files

Merge pull request #1290 from PX4/sf_fix

Require a digit ahead of the dot for a valid number for the SF0x output
parents cc98c6de 16694051
No related branches found
No related tags found
No related merge requests found
......@@ -598,7 +598,8 @@ SF0X::collect()
memcpy(_linebuf, buf, (lend + 1) - (i + 1));
}
if (_linebuf[i] == '.') {
/* we need a digit before the dot and a dot for a valid number */
if (i > 0 && _linebuf[i] == '.') {
valid = true;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment