Skip to content

Commit b19fbd1

Browse files
committed
fix tests
1 parent dfc11df commit b19fbd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/errors.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ void ProffieOSErrors::sd_card_not_found() {
3939

4040
void ProffieOSErrors::font_directory_not_found() {
4141
SaberBase::DoEffect(EFFECT_FONT_DIRECTORY_NOT_FOUND, 0);
42-
if (SaberBase::sound_length > 0) return;
4342
#ifdef ENABLE_AUDIO
43+
if (SaberBase::sound_length > 0) return;
4444
#ifndef DISABLE_TALKIE
4545
talkie.Say(talkie_font_directory_15, 15);
4646
talkie.Say(talkie_not_found_15, 15);
@@ -60,9 +60,9 @@ void ProffieOSErrors::font_directory_not_found() {
6060

6161
void ProffieOSErrors::error_in_blade_array() {
6262
SaberBase::DoEffect(EFFECT_ERROR_IN_BLADE_ARRAY, 0);
63-
if (SaberBase::sound_length > 0) return;
6463
STDOUT.println("BAD BLADE");
6564
#ifdef ENABLE_AUDIO
65+
if (SaberBase::sound_length > 0) return;
6666
#ifndef DISABLE_TALKIE
6767
talkie.Say(talkie_error_in_15, 15);
6868
talkie.Say(talkie_blade_array_15, 15);
@@ -83,8 +83,8 @@ void ProffieOSErrors::error_in_blade_array() {
8383

8484
void ProffieOSErrors::error_in_font_directory() {
8585
SaberBase::DoEffect(EFFECT_ERROR_IN_FONT_DIRECTORY, 0);
86-
if (SaberBase::sound_length > 0) return;
8786
#ifdef ENABLE_AUDIO
87+
if (SaberBase::sound_length > 0) return;
8888
#ifndef DISABLE_TALKIE
8989
talkie.Say(talkie_error_in_15, 15);
9090
talkie.Say(talkie_font_directory_15, 15);

0 commit comments

Comments
 (0)