mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Tidy
This commit is contained in:
parent
1da1837288
commit
aed2e48266
1 changed files with 2 additions and 5 deletions
|
@ -46,11 +46,8 @@ void displayRelease(displayPort_t *instance)
|
||||||
|
|
||||||
bool displayIsGrabbed(const displayPort_t *instance)
|
bool displayIsGrabbed(const displayPort_t *instance)
|
||||||
{
|
{
|
||||||
if (instance && instance->isGrabbed) { // can be called before initialised
|
// can be called before initialised
|
||||||
return true;
|
return (instance && instance->isGrabbed);
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int displayWrite(displayPort_t *instance, uint8_t x, uint8_t y, const char *s)
|
int displayWrite(displayPort_t *instance, uint8_t x, uint8_t y, const char *s)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue