Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Jul 23, 2024
1 parent 78a800b commit 625871a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/io/gimbal_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/main/io/gimbal_serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 625871a

Please sign in to comment.