Skip to content

Commit

Permalink
Fix esp-idf ci
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jul 24, 2024
1 parent 6a22f6a commit d3cf654
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/bosch/common/bosch_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
*/
#include "bosch_interfaces.h"

#if defined(ARDUINO)

#if defined(ARDUINO_ARCH_RP2040)
SPISettings SensorInterfaces::__spiSetting = SPISettings();
#else
Expand Down Expand Up @@ -155,3 +157,5 @@ void SensorInterfaces::bhy2_delay_us(uint32_t us, void *private_data)
(void)private_data;
delayMicroseconds(us);
}

#endif /*Arduino */
3 changes: 2 additions & 1 deletion src/bosch/common/bosch_interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include "SensorLib.h"

#if defined(ARDUINO)
class SensorInterfaces
{
public:
Expand All @@ -46,7 +47,7 @@ class SensorInterfaces
static SPISettings __spiSetting;
};


#endif



Expand Down

0 comments on commit d3cf654

Please sign in to comment.