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
@@ -2280,7 +2280,7 @@ void menuProcFunctionSwitches(uint8_t event)
#endif
#if defined(PCBARM) && defined(SDCARD)
else if (sd->func == FUNC_PLAY_TRACK) {
lcd_putsnAtt(15*FW, y, sd->param.name, sizeof(sd->param.name), attr);
lcd_putsnAtt(15*FW, y, sd->param, sizeof(sd->param), attr);
if (active && event==EVT_KEY_BREAK(KEY_MENU)) {
s_editMode = 0;
if (!listSdFiles(SOUNDS_PATH, SOUNDS_EXT)) {
@@ -2363,7 +2363,7 @@ void menuProcFunctionSwitches(uint8_t event)
}
else {
// The user choosed a wav file in the list
memcpy(g_model.funcSw[sub].param.name, result, sizeof(g_model.funcSw[sub].param.name));
memcpy(g_model.funcSw[sub].param, result, sizeof(g_model.funcSw[sub].param));
eeDirty(EE_MODEL);
}
}