mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Tx buffer availability hack to handle slow devices
This commit is contained in:
parent
b42de4f2a4
commit
042096fbb7
7 changed files with 70 additions and 33 deletions
|
@ -7,6 +7,7 @@ typedef struct screenFnVTable_s {
|
|||
int (*write)(uint8_t, uint8_t, char *);
|
||||
int (*heartbeat)(void);
|
||||
void (*resync)(void);
|
||||
uint16_t (*txroom)(void);
|
||||
} screenFnVTable_t;
|
||||
|
||||
typedef struct displayPort_s {
|
||||
|
@ -14,8 +15,7 @@ typedef struct displayPort_s {
|
|||
uint8_t cols;
|
||||
uint16_t buftime;
|
||||
uint16_t bufsize;
|
||||
uint16_t batchsize; // Computed by CMS
|
||||
screenFnVTable_t *VTable;
|
||||
screenFnVTable_t *vTable;
|
||||
|
||||
// CMS state
|
||||
bool cleared;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue