From e41bb7510355a5cb3d28cdc1e79b146cd73e1e2a Mon Sep 17 00:00:00 2001 From: "Konstantin (DigitalEntity) Sharlaimov" Date: Sun, 2 Feb 2020 19:35:02 +0100 Subject: [PATCH] [RPM] Enlarge RPM data type to uint32_t to prevent overlow in computing average RPM --- src/main/sensors/esc_sensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/esc_sensor.h b/src/main/sensors/esc_sensor.h index 1e10d834b4d..97d5671d425 100644 --- a/src/main/sensors/esc_sensor.h +++ b/src/main/sensors/esc_sensor.h @@ -29,7 +29,7 @@ typedef struct { int8_t temperature; int16_t voltage; int32_t current; - int16_t rpm; + uint32_t rpm; } escSensorData_t; typedef struct escSensorConfig_s {