From 2ddc533fbd8844ae3e7debf76e065521a3d0b439 Mon Sep 17 00:00:00 2001 From: Ryan howard Date: Wed, 12 Jun 2024 14:56:38 -0400 Subject: [PATCH] fix signedness comparision --- include/sensors/core/tasks/pressure_driver.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sensors/core/tasks/pressure_driver.hpp b/include/sensors/core/tasks/pressure_driver.hpp index 1bd143ed3..c2cd028bb 100644 --- a/include/sensors/core/tasks/pressure_driver.hpp +++ b/include/sensors/core/tasks/pressure_driver.hpp @@ -289,7 +289,7 @@ class MMR920 { } void send_accumulated_sensor_data(uint32_t message_index) { - for (int i = 0; i < SENSOR_BUFFER_SIZE; i++) { + for (size_t i = 0; i < SENSOR_BUFFER_SIZE; i++) { // send over buffer and then clear buffer values int current_index = (i + sensor_buffer_index) % SENSOR_BUFFER_SIZE;