1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +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;
case OSD_STATE_CHECK:
if (isBeeperOn()) {
showVisualBeeper = true;
}
showVisualBeeper = isBeeperOn();
// don't touch buffers if DMA transaction is in progress
if (displayIsTransferInProgress(osdDisplayPort)) {
@ -1227,7 +1225,6 @@ void osdUpdate(timeUs_t currentTimeUs)
case OSD_STATE_PROCESS_STATS1:
{
bool refreshStatsRequired = osdProcessStats1(currentTimeUs);
showVisualBeeper = false;
if (refreshStatsRequired) {
osdState = OSD_STATE_REFRESH_STATS;