From 52c964be65e0d5221f289eae20e0d8aee1fd5b94 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 24 Jul 2024 11:22:58 +0200 Subject: [PATCH] gatt-service/cycling_power_service_server: store current force/torque magnitudes in uint16_t, counter in uint16_t --- src/ble/gatt-service/cycling_power_service_server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ble/gatt-service/cycling_power_service_server.c b/src/ble/gatt-service/cycling_power_service_server.c index 95700e39f..e1c7dc196 100644 --- a/src/ble/gatt-service/cycling_power_service_server.c +++ b/src/ble/gatt-service/cycling_power_service_server.c @@ -179,8 +179,8 @@ typedef struct { uint8_t sampling_rate_Hz; // resolution 1 Herz - int16_t current_force_magnitude_N; - int16_t current_torque_magnitude_Nm; // newton-meters, resolution 1/32 + uint16_t current_force_magnitude_N; + uint16_t current_torque_magnitude_Nm; // newton-meters, resolution 1/32 uint16_t manufacturer_company_id; uint8_t num_manufacturer_specific_data; uint8_t * manufacturer_specific_data; @@ -191,9 +191,9 @@ typedef struct { uint16_t vector_last_crank_event_time_s; // seconds, resolution 1/1024 uint16_t vector_first_crank_measurement_angle_degree; int16_t * vector_instantaneous_force_magnitude_N_array; // newton - int force_magnitude_count; + uint16_t force_magnitude_count; int16_t * vector_instantaneous_torque_magnitude_Nm_array; // newton-meter, resolution 1/32 - int torque_magnitude_count; + uint16_t torque_magnitude_count; cycling_power_instantaneous_measurement_direction_t vector_instantaneous_measurement_direction; // CP Vector Notification (Client Characteristic Configuration)