Skip to content

Commit

Permalink
group reset template
Browse files Browse the repository at this point in the history
  • Loading branch information
mmosca committed Jun 11, 2024
1 parent 2d2eab8 commit 6893844
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/drivers/headtracker_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@

PG_REGISTER_WITH_RESET_TEMPLATE(headTrackerConfig_t, headTrackerConfig, PG_HEADTRACKER_CONFIG, 0);

static headTrackerDevice_t *commonHeadTrackerDevice = NULL;

PG_RESET_TEMPLATE(headTrackerConfig_t, headTrackerConfig,
.devType = SETTING_HEADTRACKER_TYPE_DEFAULT
);

static headTrackerDevice_t *commonHeadTrackerDevice = NULL;

void headTrackerCommonInit(void)
{
}
Expand Down
9 changes: 4 additions & 5 deletions src/main/io/gimbal_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@

PG_REGISTER_WITH_RESET_TEMPLATE(gimbalSerialConfig_t, gimbalSerialConfig, PG_GIMBAL_SERIAL_CONFIG, 0);

PG_RESET_TEMPLATE(gimbalSerialConfig_t, gimbalSerialConfig,
.singleUart = SETTING_GIMBAL_SERIAL_SINGLE_UART_DEFAULT
);

STATIC_ASSERT(sizeof(gimbalHtkAttitudePkt_t) == 10, gimbalHtkAttitudePkt_t_size_not_10);

#define GIMBAL_SERIAL_BUFFER_SIZE 512
Expand Down Expand Up @@ -75,11 +79,6 @@ static gimbalDevice_t serialGimbalDevice = {
.vTable = &gimbalSerialVTable
};

PG_RESET_TEMPLATE(gimbalSerialConfig_t, gimbalSerialConfig,
.singleUart = SETTING_GIMBAL_SERIAL_SINGLE_UART_DEFAULT
);


gimbalDevType_e gimbalSerialGetDeviceType(const gimbalDevice_t *gimbalDevice)
{
UNUSED(gimbalDevice);
Expand Down

0 comments on commit 6893844

Please sign in to comment.