Skip to content

Commit 718f183

Browse files
committed
nesso_n1: fix compilation problems
1 parent ff237b5 commit 718f183

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/Interrupts_subclassing/Interrupts_subclassing.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ void setup() {
7474
myIMU.debug(Serial);
7575
myIMU.onInterrupt(print_data);
7676
#if defined(ARDUINO_ARDUINO_NESSO_N1)
77-
myIMU.begin(BOSCH_ACCEL_ONLY);
77+
myIMU.begin(BOSCH_ACCELEROMETER_ONLY);
7878
#else
79-
myIMU.begin(BOSCH_ACCEL_AND_GYRO);
79+
myIMU.begin();
8080
#endif
8181

8282
Serial.print("Accelerometer sample rate = ");

src/BMI270.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ static void panic_led_trap(void)
374374
static int const LED_BUILTIN = 2;
375375
#endif
376376

377+
#if !defined(ARDUINO_ARDUINO_NESSO_N1)
377378
pinMode(LED_BUILTIN, OUTPUT);
378379
while (1)
379380
{
@@ -382,6 +383,7 @@ static void panic_led_trap(void)
382383
digitalWrite(LED_BUILTIN, HIGH);
383384
delay(100);
384385
}
386+
#endif
385387
}
386388

387389
void BoschSensorClass::print_rslt(int8_t rslt)

0 commit comments

Comments
 (0)