Skip to content

Commit

Permalink
fix play custom tone condition error
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean authored and AlkaMotors committed Dec 8, 2024
1 parent efeb52c commit d9cd978
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Src/sounds.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ void playStartupTune()
{
__disable_irq();

uint8_t value = *(uint8_t*)(eeprom_address + 48);
if (value != 0xFF) {
if (eepromBuffer.tune[0] != 0xFF) {
playBlueJayTune();
} else {
SET_AUTO_RELOAD_PWM(TIM1_AUTORELOAD);
Expand Down

0 comments on commit d9cd978

Please sign in to comment.