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

add an optional behaviour to flush all pending data in the internal b… #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 15, 2017

  1. add an optional behaviour to flush all pending data in the internal b…

    …uffer on timeout
    
    This is required in cases where it is expected that corrupted data
    would come in (i.e. corrupting medium). Otherwise, the driver might get
    stuck at a broken packet, trying forever for data.
    
    The behaviour, when enabled, is to try and read packets from the
    immediately available data, discarding everything that is not a full
    packet -- it would for instance discard a partial packet.
    doudou committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    e3b958d View commit details
    Browse the repository at this point in the history
  2. use base::Time for all times in the API

    And deprecate the ones that were still using integers (milliseconds).
    Timeout::timeLeft has been renamed into remaining in the Time-using
    API to keep backward compatibility.
    doudou committed Aug 15, 2017
    Configuration menu
    Copy the full SHA
    404eac1 View commit details
    Browse the repository at this point in the history