Rev 1209 | Rev 1212 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1209 | Rev 1211 | ||
---|---|---|---|
Line 310... | Line 310... | ||
310 | while(!UebertragungAbgeschlossen); |
310 | while(!UebertragungAbgeschlossen); |
311 | SendOutData('N', FC_ADDRESS, 1, (unsigned char *) &Mixer,sizeof(Mixer)); |
311 | SendOutData('N', FC_ADDRESS, 1, (unsigned char *) &Mixer,sizeof(Mixer)); |
312 | break; |
312 | break; |
Line 313... | Line 313... | ||
313 | 313 | ||
314 | case 'm':// "Write Mixer |
- | |
315 | memcpy(&Mixer, (unsigned char *)pRxData, sizeof(Mixer)); |
- | |
316 | eeprom_write_block(&Mixer, &EEPromArray[EEPROM_ADR_MIXER_TABLE], sizeof(Mixer)); |
- | |
317 | eeprom_write_byte(&EEPromArray[EEPROM_ADR_MIXER_REVISION],EE_MIXER_REVISION); // Länge der Datensätze merken |
314 | case 'm':// "Write Mixer |
318 | while(!UebertragungAbgeschlossen); |
315 | while(!UebertragungAbgeschlossen); |
- | 316 | if(pRxData[0] == MIXER_REVISION) |
|
- | 317 | { |
|
- | 318 | memcpy(&Mixer, (unsigned char *)pRxData, sizeof(Mixer)); |
|
- | 319 | eeprom_write_block(&Mixer, &EEPromArray[EEPROM_ADR_MIXER_TABLE], sizeof(Mixer)); |
|
- | 320 | tempchar1 = 1; |
|
- | 321 | } |
|
- | 322 | else tempchar1 = 0; |
|
319 | SendOutData('M', FC_ADDRESS, 1, 1, 1); |
323 | SendOutData('M', FC_ADDRESS, 1, &tempchar1, sizeof(tempchar1)); |
Line 320... | Line 324... | ||
320 | break; |
324 | break; |
321 | 325 | ||
322 | case 'p': // get PPM Channels |
326 | case 'p': // get PPM Channels |