From 4c1cba8628025abc7343dd0111d680954af3698c Mon Sep 17 00:00:00 2001 From: Paul Guenette Date: Wed, 13 Dec 2017 21:53:01 -0500 Subject: [PATCH] Improve parameter naming --- Firmware/MotorControl/low_level.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Firmware/MotorControl/low_level.c b/Firmware/MotorControl/low_level.c index 34927e8e..d7c795c8 100644 --- a/Firmware/MotorControl/low_level.c +++ b/Firmware/MotorControl/low_level.c @@ -531,10 +531,10 @@ void step_cb(uint16_t GPIO_Pin) { } // Triggered when an encoder passes over the "Index" pin -void enc_index_cb(uint16_t GPIO_Pin, int index) { - if (!motors[index].encoder.index_found) { - setEncoderCount(&motors[index], 0); - motors[index].encoder.index_found = true; +void enc_index_cb(uint16_t GPIO_Pin, uint8_t motor_index) { + if (!motors[motor_index].encoder.index_found) { + setEncoderCount(&motors[motor_index], 0); + motors[motor_index].encoder.index_found = true; } }