Little pause ;) Using unions in EEPROM is not a very good idea for Linux / Windows interoperability

This commit is contained in:
bsongis
2012-07-01 15:02:00 +00:00
parent 4505d886f6
commit fcf93ad789
4 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -1689,13 +1689,13 @@ void evalFunctions()
else if (sd->func == FUNC_PLAY_TRACK) {
if (!audioBusy()) {
char lfn[32] = SOUNDS_PATH "/";
strcat(lfn, sd->param.name);
strcat(lfn, sd->param);
strcat(lfn, SOUNDS_EXT);
playFile(lfn);
}
}
else if (sd->func == FUNC_VOLUME) {
requiredSpeakerVolume = ((1024 + getValue(sd->param.value)) * NUM_VOL_LEVELS) / 2048;
requiredSpeakerVolume = ((1024 + getValue(FSW_PARAM(sd))) * NUM_VOL_LEVELS) / 2048;
}
#elif defined(SOMO)
else if (sd->func == FUNC_PLAY_TRACK || sd->func == FUNC_PLAY_VALUE) {