1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Merge pull request #11359 from alexeystn/fix_visual_beeper

Fix visual beeper
This commit is contained in:
haslinghuis 2022-01-30 02:29:42 +01:00 committed by GitHub
commit fc8318f54b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;