Skip to content

Commit 1bb9deb

Browse files
authored
Fix: Provide definition for LED_BUILTIN if there's none (mbed_edge). (#16)
1 parent 52d8e70 commit 1bb9deb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BMI270.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,10 @@ void BoschSensorClass::interrupt_handler()
333333
#endif
334334
static void panic_led_trap(void)
335335
{
336+
#if !defined(LED_BUILTIN)
337+
static int const LED_BUILTIN = 2;
338+
#endif
339+
336340
pinMode(LED_BUILTIN, OUTPUT);
337341
while (1)
338342
{

0 commit comments

Comments
 (0)