Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #14149 - Do not discard a perfectly good line at the end of the data burst #67

Closed
wants to merge 1 commit into from

Commits on Dec 28, 2018

  1. Do not discard a perfectly good line at the end of the data burst

    While parsing a data burst, the inner loop consumes a line at a time and tests
    if it matches the sensor data format. If it does not, the data burst is over,
    so the new particle is emitted, and the function jumps back to the top o the
    outer loop to start looking for the next data burst.
    
    However, that line has now been consumed and cannot be read again by the outer
    loop. If the discarded line is the header of the next data burst, parsing will
    fail.
    
    This commit fixes that by passing the line back to the outer loop.
    rgov committed Dec 28, 2018
    Configuration menu
    Copy the full SHA
    a74ab00 View commit details
    Browse the repository at this point in the history