mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Fix issues impacting RX_STATE_MODES state duration and add DEBUG_RX_STATE_TIME
This commit is contained in:
parent
8d52a36150
commit
c05ad2ec9b
7 changed files with 31 additions and 2 deletions
|
@ -299,6 +299,13 @@ void changeOsdProfileIndex(uint8_t profileIndex)
|
|||
|
||||
void osdAnalyzeActiveElements(void)
|
||||
{
|
||||
/* This code results in a total RX task RX_STATE_MODES state time of ~68us on an F411 overclocked to 108MHz
|
||||
* This upsets the scheduler task duration estimation and will break SPI RX communication. This can
|
||||
* occur in flight, but only when the OSD profile is changed by switch so can be ignored, only causing
|
||||
* one late task instance.
|
||||
*/
|
||||
schedulerIgnoreTaskExecTime();
|
||||
|
||||
osdAddActiveElements();
|
||||
osdDrawActiveElementsBackground(osdDisplayPort);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue