Skip to content

Commit

Permalink
Properly init the MSP frame state when creating the MSP class (#62)
Browse files Browse the repository at this point in the history
* Properly init the MSP frame state when creating the MSP class

* Remove whitespace
  • Loading branch information
wvarty authored Mar 2, 2022
1 parent db938a5 commit 574a8fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/MSP/msp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions lib/MSP/msp.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ typedef struct {
class MSP
{
public:
MSP();
bool processReceivedByte(uint8_t c);
mspPacket_t* getReceivedPacket();
void markPacketReceived();
Expand Down

0 comments on commit 574a8fa

Please sign in to comment.