Rev 1666 | Rev 1673 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1666 | Rev 1672 | ||
---|---|---|---|
Line 264... | Line 264... | ||
264 | } |
264 | } |
265 | } |
265 | } |
266 | else // old BL version |
266 | else // old BL version |
267 | { |
267 | { |
268 | pBuff = (uint8_t*)&(Motor[motor_read].Current); |
268 | pBuff = (uint8_t*)&(Motor[motor_read].Current); |
269 | if(BLFlags & BLFLAG_READ_VERSION) BuffLen = 2; // Current & MaxPwm |
269 | if((BLFlags & BLFLAG_READ_VERSION) || (motor_read == motor_read_temperature)) BuffLen = 2; // Current & MaxPwm |
270 | else BuffLen = 1; // read Current only |
270 | else BuffLen = 1; // read Current only |
271 | } |
271 | } |
272 | if(BuffLen == 1) |
272 | if(BuffLen == 1) |
273 | { |
273 | { |
274 | I2C_ReceiveLastByte(); // read last byte |
274 | I2C_ReceiveLastByte(); // read last byte |