aboutsummaryrefslogtreecommitdiff
path: root/Source/Sfx.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:57:38 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-23 13:57:38 +0100
commit3b80f74ce10cfd7e55199dcb9a8c4b80598227d2 (patch)
tree43d267ff02ef9c04b60305adead701de8c5a1fa5 /Source/Sfx.c
parenta923f153f906144de599024148fc868e234d06cd (diff)
downloadairport-3b80f74ce10cfd7e55199dcb9a8c4b80598227d2.tar.gz
Optimization flag changed from -Os to -O3 (seems to perform better FPS-wise).
Improved const-correctness and scope for some variables.
Diffstat (limited to 'Source/Sfx.c')
-rw-r--r--Source/Sfx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Sfx.c b/Source/Sfx.c
index ded505e..9cb0c94 100644
--- a/Source/Sfx.c
+++ b/Source/Sfx.c
@@ -46,7 +46,7 @@ bool SfxUploadSound_Ex(const char* file_path, SsVag* vag, uint8_t voiceIndex)
return false;
}
- if (usedVoices[voiceIndex] != false)
+ if (usedVoices[voiceIndex])
{
Serial_printf("Voice number %d is already being used.\n", voiceIndex);
return false;