Subversion Repositories FlightCtrl

Rev

Rev 1760 | Rev 2050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1760 Rev 1765
Line 295... Line 295...
295
                        }
295
                        }
296
                        else // nothing left
296
                        else // nothing left
297
                        {
297
                        {
298
                                if(BLFlags & BLFLAG_READ_VERSION)
298
                                if(BLFlags & BLFLAG_READ_VERSION)
299
                                {
299
                                {
300
                                        if(!(FCFlags & FCFLAG_MOTOR_RUN) && (Motor[motor_read].MaxPWM == 250) ) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK;
300
                                        if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN) && (Motor[motor_read].MaxPWM == 250) ) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK;
301
                                        else Motor[motor_read].Version = 0;
301
                                        else Motor[motor_read].Version = 0;
302
                                }
302
                                }
303
                                if(++motor_read >= MAX_MOTORS)
303
                                if(++motor_read >= MAX_MOTORS)
304
                                {
304
                                {
305
                                        motor_read = 0;                 // restart from beginning
305
                                        motor_read = 0;                 // restart from beginning