1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Merge pull request #5768 from etracer65/esc_combined_overflow

Fix potential overflow in combined ESC sensor data
This commit is contained in:
Andrey Mironov 2018-05-03 11:00:28 +03:00 committed by GitHub
commit cb9e1ef58c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,8 +32,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;