Skip to content

Commit

Permalink
fix signedness comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanthecoder committed Jun 12, 2024
1 parent 4d684f7 commit 2ddc533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sensors/core/tasks/pressure_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2ddc533

Please sign in to comment.