Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94749

Add a textual error description for QCanBusFrame::isValid

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2
    • SerialBus: CAN Bus
    • None
    • All

      QCanBusFrame::isValid() already provides a means to check if a frame is valid, i.e. if it can be transmitted over CAN bus.

      However, when this check fails, it is hard to know why the frame is invalid. Typical errors may be:

      • FrameId exceeds the allowed values
      • Payload it too long
      • For CAN FD, only discrete values of payload size are allowed

      So lets introduce a function to display these errors resp. extend the toString() function to handle these cases too.

        For Gerrit Dashboard: QTBUG-94749
        # Subject Branch Project Status CR V

            aha_1980 André Hartmann
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change