diff --git a/lib/MSP/msp.cpp b/lib/MSP/msp.cpp index 9fe5960..ff1ac10 100644 --- a/lib/MSP/msp.cpp +++ b/lib/MSP/msp.cpp @@ -31,6 +31,10 @@ uint8_t crc8_dvb_s2(uint8_t crc, unsigned char a) return crc; } +MSP::MSP() : m_inputState(MSP_IDLE) +{ +} + bool MSP::processReceivedByte(uint8_t c) { diff --git a/lib/MSP/msp.h b/lib/MSP/msp.h index 7637ee8..db51b06 100644 --- a/lib/MSP/msp.h +++ b/lib/MSP/msp.h @@ -88,6 +88,7 @@ typedef struct { class MSP { public: + MSP(); bool processReceivedByte(uint8_t c); mspPacket_t* getReceivedPacket(); void markPacketReceived();