On-board packet queue

This commit is contained in:
Mark Qvist 2018-06-27 10:22:44 +02:00
parent 0dd6ce6539
commit 11e3b8908d
3 changed files with 113 additions and 9 deletions

View file

@ -48,11 +48,15 @@
#define ERROR_INITRADIO 0x01
#define ERROR_TXFAILED 0x02
#define ERROR_EEPROM_LOCKED 0x03
#define ERROR_QUEUE_FULL 0x04
// Serial framing variables
size_t frame_len;
bool IN_FRAME = false;
bool ESCAPE = false;
bool SERIAL_READING = false;
uint8_t command = CMD_UNKNOWN;
uint32_t last_serial_read = 0;
uint32_t serial_read_timeout_ms = 2;
#endif