From 110cdf34eaa0e5623b834ea8bea3a5ef0d00366f Mon Sep 17 00:00:00 2001 From: ShallowGreen123 <2608653986@qq.com> Date: Thu, 10 Oct 2024 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9ACompilation=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/test_factory/IIC_device.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/test_factory/IIC_device.cpp b/examples/test_factory/IIC_device.cpp index 22ffee7..f85cf77 100644 --- a/examples/test_factory/IIC_device.cpp +++ b/examples/test_factory/IIC_device.cpp @@ -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);