Rev 2380 | Rev 2403 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2380 | Rev 2386 | ||
---|---|---|---|
Line 302... | Line 302... | ||
302 | // else Motor[motor_read].Version = 0; |
302 | // else Motor[motor_read].Version = 0; |
303 | if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN)) |
303 | if(!(FC_StatusFlags & FC_STATUS_MOTOR_RUN)) |
304 | { |
304 | { |
305 | if((Motor[motor_read].MaxPWM & 252) == 248) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK; |
305 | if((Motor[motor_read].MaxPWM & 252) == 248) Motor[motor_read].Version |= MOTOR_STATE_NEW_PROTOCOL_MASK; |
306 | else Motor[motor_read].Version = 0; |
306 | else Motor[motor_read].Version = 0; |
- | 307 | if(Motor[motor_read].MaxPWM == 248) Motor[motor_read].Version |= (MOTOR_STATE_FAST_MODE | MOTOR_STATE_BL30); |
|
- | 308 | else |
|
307 | if(Motor[motor_read].MaxPWM == 248) Motor[motor_read].Version |= MOTOR_STATE_FAST_MODE; |
309 | if(Motor[motor_read].MaxPWM == 249) Motor[motor_read].Version |= MOTOR_STATE_BL30; |
308 | } |
310 | } |
309 | } |
311 | } |
310 | if(++motor_read >= MAX_MOTORS) |
312 | if(++motor_read >= MAX_MOTORS) |
311 | { |
313 | { |
312 | motor_read = 0; // restart from beginning |
314 | motor_read = 0; // restart from beginning |