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

Use C++ style callback interfaces as a variant of existing C function callbacks #404

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

Commits on Jun 12, 2024

  1. Fix endless loop in Actisense reader when corrupt data is received

    If byte 'StartOfText' is received when an escape character was not
    received previously, the method 'GetMessageFromStream' could end up in
    an endless loop. This shouldn't happen when correct data is received,
    but since it's data received on the UART, there are no guarantees that
    the data is not corrupt.
    peolsson committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    fb1bfd9 View commit details
    Browse the repository at this point in the history
  2. Extend tActisenseReader with C++ interface callback

    Add an alternative callback method instead of using a C-style function
    pointer when a new message is received. This callback is based on a
    C++ interface which allows for handling a callback within a C++ class
    context instead of a C function.
    peolsson committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    60db174 View commit details
    Browse the repository at this point in the history
  3. Extend tNMEA2000 with C++ interface callbacks

    Add an alternative callback method instead of using a C-style function
    pointer for various callbacks. This callback is based on a
    C++ interface which allows for handling a callback within a C++ class
    context instead of a C function.
    peolsson committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    c968e77 View commit details
    Browse the repository at this point in the history