mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-04-07 23:43:34 +00:00
Additional checks for overflows and some code cleanup
This commit is contained in:
parent
3284a72feb
commit
e0332c4efa
8 changed files with 37 additions and 60 deletions
|
|
@ -22,6 +22,8 @@
|
|||
|
||||
#include "DStarDefines.h"
|
||||
|
||||
const uint16_t DSTAR_BUFFER_LENGTH_BITS = 800U;
|
||||
|
||||
enum DSRX_STATE {
|
||||
DSRXS_NONE,
|
||||
DSRXS_HEADER,
|
||||
|
|
@ -39,7 +41,7 @@ public:
|
|||
private:
|
||||
DSRX_STATE m_rxState;
|
||||
uint32_t m_patternBuffer;
|
||||
uint8_t m_rxBuffer[100U];
|
||||
uint8_t m_rxBuffer[DSTAR_BUFFER_LENGTH_BITS / 8U];
|
||||
unsigned int m_rxBufferBits;
|
||||
unsigned int m_dataBits;
|
||||
unsigned int m_mar;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue