Fix pokitto noise sound

This commit is contained in:
Miloslav Číž 2020-11-20 12:42:27 +01:00
parent 88a83abbdd
commit 9cd4a8b38e

View File

@ -118,7 +118,16 @@ void SFG_setMusic(uint8_t value)
{ {
case SFG_MUSIC_TURN_ON: musicOn = 1; break; case SFG_MUSIC_TURN_ON: musicOn = 1; break;
case SFG_MUSIC_TURN_OFF: musicOn = 0; break; case SFG_MUSIC_TURN_OFF: musicOn = 0; break;
case SFG_MUSIC_NEXT: SFG_nextMusicTrack(); break; case SFG_MUSIC_NEXT:
{
/* Skipping a track takes some time, so turn off music for a while
(otherwise noise can be heard). */
uint8_t music = musicOn;
musicOn = 0;
SFG_nextMusicTrack();
musicOn = music;
}
break;
defaule: break; defaule: break;
} }
} }