Skip to content

Commit

Permalink
fix:Compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShallowGreen123 committed Oct 10, 2024
1 parent 0d95a97 commit 110cdf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/test_factory/IIC_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,19 @@ float accel_factor;
float gyro_factor;
float magn_factor;

void accel_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len)
void accel_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len, uint64_t *timestamp)
{
accel_factor = get_sensor_default_scaling(sensor_id);
bhy2_parse_xyz(data_ptr, &accel_data);
}

void gyro_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len)
void gyro_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len, uint64_t *timestamp)
{
gyro_factor = get_sensor_default_scaling(sensor_id);
bhy2_parse_xyz(data_ptr, &gyro_data);
}

void magn_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len)
void magn_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len, uint64_t *timestamp)
{
magn_factor = get_sensor_default_scaling(sensor_id);
bhy2_parse_xyz(data_ptr, &magn_data);
Expand Down

0 comments on commit 110cdf3

Please sign in to comment.