Rev 1861 | Rev 1865 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1861 | Rev 1862 | ||
---|---|---|---|
Line 409... | Line 409... | ||
409 | Debug("Lese Setting %d", tempchar1); |
409 | Debug("Lese Setting %d", tempchar1); |
Line 410... | Line 410... | ||
410 | 410 | ||
Line 411... | Line 411... | ||
411 | break; |
411 | break; |
412 | 412 | ||
413 | case 's': // Parametersatz speichern |
413 | case 's': // Parametersatz speichern |
414 | if((1 <= pRxData[0]) && (pRxData[0] <= 5) && (pRxData[1] == EEPARAM_REVISION)) // check for setting to be in range |
414 | if((1 <= pRxData[0]) && (pRxData[0] <= 5) && (pRxData[1] == EEPARAM_REVISION) && MotorenEin == 0) // check for setting to be in range |
415 | { |
415 | { |
416 | memcpy(&EE_Parameter, (uint8_t*)&pRxData[1], sizeof(EE_Parameter) - 1); |
416 | memcpy(&EE_Parameter, (uint8_t*)&pRxData[1], sizeof(EE_Parameter) - 1); |
417 | ParamSet_WriteToEEProm(pRxData[0]); |
417 | ParamSet_WriteToEEProm(pRxData[0]); |