mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
OSD - Add support for async screen clearing to display API.
No screen clearing is actually done asynchronously yet.
This commit is contained in:
parent
f2559fbfd8
commit
e2c0388a6a
17 changed files with 174 additions and 145 deletions
|
@ -81,8 +81,10 @@ static int release(displayPort_t *displayPort)
|
|||
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
|
||||
}
|
||||
|
||||
static int clearScreen(displayPort_t *displayPort)
|
||||
static int clearScreen(displayPort_t *displayPort, displayClearOption_e options)
|
||||
{
|
||||
UNUSED(options);
|
||||
|
||||
uint8_t subcmd[] = { 2 };
|
||||
|
||||
return output(displayPort, MSP_DISPLAYPORT, subcmd, sizeof(subcmd));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue