diff --git a/src/main/io/gimbal_serial.c b/src/main/io/gimbal_serial.c index c99facbea9c..be9966c8572 100644 --- a/src/main/io/gimbal_serial.c +++ b/src/main/io/gimbal_serial.c @@ -173,13 +173,13 @@ bool gimbalSerialDetect(void) #endif #ifdef GIMBAL_UNIT_TEST -void gimbalSerialProcess(gimbalDevice_t *gimbalDevice, timeUs_t currentTime) +void gimbalSerialProcess(const gimbalDevice_t *gimbalDevice, timeUs_t currentTime) { UNUSED(gimbalDevice); UNUSED(currentTime); } #else -void gimbalSerialProcess(gimbalDevice_t *gimbalDevice, timeUs_t currentTime) +void gimbalSerialProcess(const gimbalDevice_t *gimbalDevice, timeUs_t currentTime) { UNUSED(currentTime); diff --git a/src/main/io/gimbal_serial.h b/src/main/io/gimbal_serial.h index d72148cf93f..f11a4238f6e 100644 --- a/src/main/io/gimbal_serial.h +++ b/src/main/io/gimbal_serial.h @@ -76,7 +76,7 @@ int16_t gimbal2pwm(int16_t value); bool gimbalSerialInit(void); bool gimbalSerialDetect(void); -void gimbalSerialProcess(gimbalDevice_t *gimbalDevice, timeUs_t currentTime); +void gimbalSerialProcess(const gimbalDevice_t *gimbalDevice, timeUs_t currentTime); bool gimbalSerialIsReady(const gimbalDevice_t *gimbalDevice); gimbalDevType_e gimbalSerialGetDeviceType(const gimbalDevice_t *gimbalDevice); bool gimbalSerialHasHeadTracker(const gimbalDevice_t *gimbalDevice);