Rev 2158 | Rev 2160 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2158 | Rev 2159 | ||
---|---|---|---|
Line 480... | Line 480... | ||
480 | case 'n':// Read motor mixer |
480 | case 'n':// Read motor mixer |
481 | tempchar[0] = EEMIXER_REVISION; |
481 | tempchar[0] = EEMIXER_REVISION; |
482 | tempchar[1] = sizeof(MotorMixer_t); |
482 | tempchar[1] = sizeof(MotorMixer_t); |
483 | while (!txd_complete) |
483 | while (!txd_complete) |
484 | ; // wait for previous frame to be sent |
484 | ; // wait for previous frame to be sent |
485 | sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t *)&motorMixer, sizeof(motorMixer)); |
485 | sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t*)&motorMixer, sizeof(motorMixer)); |
486 | break; |
486 | break; |
Line 487... | Line 487... | ||
487 | 487 | ||
488 | case 'm':// "Set Mixer Table |
488 | case 'm':// "Set Mixer Table |
489 | if (pRxData[0] == EEMIXER_REVISION && (pRxData[1] == sizeof(MotorMixer_t))) { |
489 | if (pRxData[0] == EEMIXER_REVISION && (pRxData[1] == sizeof(MotorMixer_t))) { |
490 | memcpy(&motorMixer, (uint8_t*)pRxData[2], sizeof(motorMixer)); |
490 | memcpy(&motorMixer, (uint8_t*)&pRxData[2], sizeof(motorMixer)); |
491 | motorMixer_writeToEEProm(); |
491 | motorMixer_writeToEEProm(); |
492 | while (!txd_complete) |
492 | while (!txd_complete) |
493 | ; // wait for previous frame to be sent |
493 | ; // wait for previous frame to be sent |
494 | tempchar[0] = 1; |
494 | tempchar[0] = 1; |