Skip to content

Commit

Permalink
AP_RCProtocol: use constructor from parent class in ibus
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and tridge committed Feb 7, 2024
1 parent 5b6d86c commit ae19d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions libraries/AP_RCProtocol/AP_RCProtocol_IBUS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@

#include "AP_RCProtocol_IBUS.h"

// constructor
AP_RCProtocol_IBUS::AP_RCProtocol_IBUS(AP_RCProtocol &_frontend) :
AP_RCProtocol_Backend(_frontend)
{}

// decode a full IBUS frame
bool AP_RCProtocol_IBUS::ibus_decode(const uint8_t frame[IBUS_FRAME_SIZE], uint16_t *values, bool *ibus_failsafe)
{
Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_RCProtocol/AP_RCProtocol_IBUS.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
class AP_RCProtocol_IBUS : public AP_RCProtocol_Backend
{
public:
AP_RCProtocol_IBUS(AP_RCProtocol &_frontend);
using AP_RCProtocol_Backend::AP_RCProtocol_Backend;

void process_pulse(uint32_t width_s0, uint32_t width_s1) override;
void process_byte(uint8_t byte, uint32_t baudrate) override;
private:
Expand Down

0 comments on commit ae19d03

Please sign in to comment.