SBUS2 fix

This commit is contained in:
Lorenz Meier
2014-10-06 19:20:02 +02:00
parent b4c188cf19
commit 34e75672bb

View File

@@ -29,7 +29,8 @@ int main(int argc, char *argv[]) {
// Trash the first 20 lines
for (unsigned i = 0; i < 20; i++) {
(void)fscanf(fp, "%f,%x,,", &f, &x);
char buf[200];
(void)fgets(buf, sizeof(buf), fp);
}
// Init the parser