Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 637 → Rev 638

/trunk/spi_slave.c
686,7 → 686,6
case SPI_FCCMD_BL_ACCU:
FC.BAT_Current = FromFlightCtrl.Param.Int[0];
DebugOut.Analog[8] = FC.BAT_Current;
if(AmountOfMotors < FromFlightCtrl.Param.Byte[2]+1) AmountOfMotors = FromFlightCtrl.Param.Byte[2]+1;
BL_MinOfMaxPWM = FromFlightCtrl.Param.Byte[3];
if(BL_MinOfMaxPWM < Logging_BL_MinOfMaxPWM) Logging_BL_MinOfMaxPWM = BL_MinOfMaxPWM; // hold the value until logged
if(BL_MinOfMaxPWM < ErrorCheck_BL_MinOfMaxPWM) ErrorCheck_BL_MinOfMaxPWM = BL_MinOfMaxPWM; // hold the value until Error processed
707,6 → 706,7
}
if(Out1TriggerUpdateBlocked) Out1TriggerUpdateBlocked--;
index = FromFlightCtrl.Param.Byte[2] & 0x0f; //MAX_MOTORS
if(AmountOfMotors < index+1) AmountOfMotors = index+1;
Motor[index].NotReadyCnt = FromFlightCtrl.Param.Byte[6];
Motor_Version[index] = FromFlightCtrl.Param.Byte[7];
Motor[index].MaxPWM = FromFlightCtrl.Param.Byte[8];