File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- This file is part of the Arduino_LSM6DSOX library.
2
+ This file is part of the Arduino_MKRIoTCarrier library.
3
3
Copyright (c) 2021 Arduino SA. All rights reserved.
4
4
5
5
This library is free software; you can redistribute it and/or
22
22
// sets function called on slave write
23
23
IMUClass::IMUClass ( getRev_t getRevision)
24
24
{
25
- // If board_revision = 0, IMU module is LSM6DSOX, otherwise is LSM6DS3
26
25
board_revision = getRevision;
27
26
}
28
27
@@ -33,6 +32,7 @@ IMUClass::~IMUClass()
33
32
int IMUClass::begin ()
34
33
{
35
34
_revision = board_revision ();
35
+ // If board_revision = BOARD_REVISION_2, IMU module is LSM6DSOX, otherwise is LSM6DS3
36
36
if (_revision == BOARD_REVISION_2) {
37
37
LSM6DSOX = new LSM6DSOXClass (Wire, LSM6DSOX_ADDRESS);
38
38
if (LSM6DSOX == nullptr ) return 0 ;
You can’t perform that action at this time.
0 commit comments