482,12 → 482,12 |
tempchar[1] = sizeof(MotorMixer_t); |
while (!txd_complete) |
; // wait for previous frame to be sent |
sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t *)&motorMixer, sizeof(motorMixer)); |
sendOutData('N', FC_ADDRESS, 2, &tempchar, 2, (uint8_t*)&motorMixer, sizeof(motorMixer)); |
break; |
|
case 'm':// "Set Mixer Table |
if (pRxData[0] == EEMIXER_REVISION && (pRxData[1] == sizeof(MotorMixer_t))) { |
memcpy(&motorMixer, (uint8_t*)pRxData[2], sizeof(motorMixer)); |
memcpy(&motorMixer, (uint8_t*)&pRxData[2], sizeof(motorMixer)); |
motorMixer_writeToEEProm(); |
while (!txd_complete) |
; // wait for previous frame to be sent |