mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-04 15:35:37 -04:00
Fix race condition on multiple interfaces receiving at once
This commit is contained in:
parent
6035e1a2c2
commit
81aff16c2d
4 changed files with 36 additions and 41 deletions
7
Config.h
7
Config.h
|
@ -28,6 +28,8 @@
|
|||
#define CABLE_STATE_DISCONNECTED 0x00
|
||||
#define CABLE_STATE_CONNECTED 0x01
|
||||
uint8_t cable_state = CABLE_STATE_DISCONNECTED;
|
||||
|
||||
#define MAX_INTERFACES 12
|
||||
|
||||
#define BT_STATE_NA 0xff
|
||||
#define BT_STATE_OFF 0x00
|
||||
|
@ -88,6 +90,11 @@
|
|||
uint8_t seq = 0xFF;
|
||||
uint16_t read_len = 0;
|
||||
|
||||
|
||||
FIFOBuffer packet_rdy_interfaces;
|
||||
|
||||
uint8_t packet_rdy_interfaces_buf[MAX_INTERFACES];
|
||||
|
||||
// Incoming packet buffer
|
||||
uint8_t pbuf[MTU];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue