mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #11359 from alexeystn/fix_visual_beeper
Fix visual beeper
This commit is contained in:
commit
fc8318f54b
1 changed files with 1 additions and 4 deletions
|
@ -1203,9 +1203,7 @@ void osdUpdate(timeUs_t currentTimeUs)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OSD_STATE_CHECK:
|
case OSD_STATE_CHECK:
|
||||||
if (isBeeperOn()) {
|
showVisualBeeper = isBeeperOn();
|
||||||
showVisualBeeper = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// don't touch buffers if DMA transaction is in progress
|
// don't touch buffers if DMA transaction is in progress
|
||||||
if (displayIsTransferInProgress(osdDisplayPort)) {
|
if (displayIsTransferInProgress(osdDisplayPort)) {
|
||||||
|
@ -1227,7 +1225,6 @@ void osdUpdate(timeUs_t currentTimeUs)
|
||||||
case OSD_STATE_PROCESS_STATS1:
|
case OSD_STATE_PROCESS_STATS1:
|
||||||
{
|
{
|
||||||
bool refreshStatsRequired = osdProcessStats1(currentTimeUs);
|
bool refreshStatsRequired = osdProcessStats1(currentTimeUs);
|
||||||
showVisualBeeper = false;
|
|
||||||
|
|
||||||
if (refreshStatsRequired) {
|
if (refreshStatsRequired) {
|
||||||
osdState = OSD_STATE_REFRESH_STATS;
|
osdState = OSD_STATE_REFRESH_STATS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue