Fix potential overflow in combined ESC sensor data

The calculated combined ESC sensor data could potentially overflow in some extreme cases and the problem would be more likely in cases with more than 4 motors.
This commit is contained in:
Bruce Luckcuck 2018-04-25 11:12:46 -04:00
parent c0b27e6d0c
commit f8bee2feff
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ typedef struct {
uint8_t dataAge;
int8_t temperature; // C degrees
int16_t voltage; // 0.01V
int16_t current; // 0.01A
int16_t consumption; // mAh
int32_t current; // 0.01A
int32_t consumption; // mAh
int16_t rpm; // 0.01erpm
} escSensorData_t;