Skip to content

Commit

Permalink
a fix for ESP32-S3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jul 25, 2024
1 parent 92f9f32 commit 8f64904
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@

#include "bosch/BoschParse.h"
#include "bosch/SensorBhy2Define.h"
#include "bosch/firmware/BHI260AP.fw.h"


#if defined __has_include
#if __has_include ("bosch/firmware/BHI260AP.fw.h")
#include "bosch/firmware/BHI260AP.fw.h"
#endif
#else
#include "bosch/firmware/BHI260AP.fw.h"
#endif


class SensorBHI260AP
Expand Down Expand Up @@ -610,7 +614,13 @@ class SensorBHI260AP

if (!__firmware) {
// Default write to ram
#if defined __has_include
#if __has_include ("bosch/firmware/BHI260AP.fw.h")
setFirmware(bhy2_firmware_image, sizeof(bhy2_firmware_image), false);
#endif
#else
setFirmware(bhy2_firmware_image, sizeof(bhy2_firmware_image), false);
#endif
}

if (!isReady()) {
Expand Down

0 comments on commit 8f64904

Please sign in to comment.