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 5e99b31 commit 0d95a97
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
example:
- examples/factory
- examples/A7682E/test_AT
- examples/aduio_pcm5102a
- examples/test_BHI260AP
- examples/test_EPD
- examples/test_factory
Expand Down
4 changes: 2 additions & 2 deletions examples/test_BHI260AP/test_BHI260AP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#define BHI260AP_RST -1

SensorBHI260AP bhy;
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)
{
struct bhy2_data_xyz data;
float scaling_factor = get_sensor_default_scaling(sensor_id);
Expand All @@ -53,7 +53,7 @@ void accel_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)
void gyro_process_callback(uint8_t sensor_id, uint8_t *data_ptr, uint32_t len, uint64_t *timestamp)
{
struct bhy2_data_xyz data;
float scaling_factor = get_sensor_default_scaling(sensor_id);
Expand Down
15 changes: 7 additions & 8 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ lib_deps =
adafruit/Adafruit BusIO @ ^1.14.4
olikraus/U8g2_for_Adafruit_GFX@^1.8.0
adafruit/Adafruit GFX Library@^1.11.10
esphome/ESP32-audioI2S@^2.0.7
SPI
Wire
FS
Expand All @@ -81,13 +80,13 @@ lib_deps =
[env:A7682E]

[env:aduio_pcm5102a]
; build_flags =
; -DBOARD_HAS_PSRAM
; -DARDUINO_USB_CDC_ON_BOOT=1
; -DDISABLE_ALL_LIBRARY_WARNINGS
; -Wnarrowing
; lib_deps =
; esphome/ESP32-audioI2S@^2.0.7
build_flags =
-DBOARD_HAS_PSRAM
-DARDUINO_USB_CDC_ON_BOOT=1
-DDISABLE_ALL_LIBRARY_WARNINGS
-Wnarrowing
lib_deps =
esphome/ESP32-audioI2S@^2.0.7

[env:factory]
[env:test_BHI260AP]
Expand Down

0 comments on commit 0d95a97

Please sign in to comment.