mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Fixed the MAX7456 loop time problems introduced by #9948.
This commit is contained in:
parent
1fbd113204
commit
cfc89c98a8
18 changed files with 118 additions and 96 deletions
|
@ -108,9 +108,9 @@ void displayHeartbeat(displayPort_t *instance)
|
|||
instance->vTable->heartbeat(instance);
|
||||
}
|
||||
|
||||
void displayResync(displayPort_t *instance)
|
||||
void displayRedraw(displayPort_t *instance)
|
||||
{
|
||||
instance->vTable->resync(instance);
|
||||
instance->vTable->redraw(instance);
|
||||
}
|
||||
|
||||
uint16_t displayTxBytesFree(const displayPort_t *instance)
|
||||
|
@ -153,12 +153,12 @@ bool displayWriteFontCharacter(displayPort_t *instance, uint16_t addr, const osd
|
|||
return false;
|
||||
}
|
||||
|
||||
bool displayIsReady(displayPort_t *instance)
|
||||
bool displayCheckReady(displayPort_t *instance, bool rescan)
|
||||
{
|
||||
if (instance->vTable->isReady) {
|
||||
return instance->vTable->isReady(instance);
|
||||
if (instance->vTable->checkReady) {
|
||||
return instance->vTable->checkReady(instance, rescan);
|
||||
}
|
||||
// Drivers that don't provide an isReady method are
|
||||
// Drivers that don't provide a checkReady method are
|
||||
// assumed to be immediately ready (either by actually
|
||||
// begin ready very quickly or by blocking)
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue