Subversion Repositories FlightCtrl

Rev

Rev 2370 | Rev 2386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2370 Rev 2380
Line 296... Line 296...
296
                        }
296
                        }
297
                        else // nothing left
297
                        else // nothing left
298
                        {
298
                        {
299
                                if(BLFlags & BLFLAG_READ_VERSION)
299
                                if(BLFlags & BLFLAG_READ_VERSION)
300
                                {
300
                                {
301
                                        if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN) && (Motor[motor_read].MaxPWM == 250) ) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK;
301
//                                      if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN) && ((Motor[motor_read].MaxPWM & 252) == 248)) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK;
302
                                        else Motor[motor_read].Version = 0;
302
//                                      else Motor[motor_read].Version = 0;
-
 
303
                                        if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN))
-
 
304
                     {
-
 
305
                                           if((Motor[motor_read].MaxPWM & 252) == 248) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK;
-
 
306
                                           else Motor[motor_read].Version = 0;
-
 
307
                       if(Motor[motor_read].MaxPWM == 248) Motor[motor_read].Version |= MOTOR_STATE_FAST_MODE;
-
 
308
                                         }  
303
                                }
309
                                }
304
                                if(++motor_read >= MAX_MOTORS)
310
                                if(++motor_read >= MAX_MOTORS)
305
                                {
311
                                {
306
                                        motor_read = 0;                 // restart from beginning
312
                                        motor_read = 0;                 // restart from beginning
307
                                        BLConfig_ReadMask = 0;  // reset read configuration bitmask
313
                                        BLConfig_ReadMask = 0;  // reset read configuration bitmask