Skip to content

Commit 04c6050

Browse files
committed
Properly commented the IMU's selection on IMUClass
1 parent c166d6f commit 04c6050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IMUClass.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
This file is part of the Arduino_LSM6DSOX library.
2+
This file is part of the Arduino_MKRIoTCarrier library.
33
Copyright (c) 2021 Arduino SA. All rights reserved.
44
55
This library is free software; you can redistribute it and/or
@@ -22,7 +22,6 @@
2222
// sets function called on slave write
2323
IMUClass::IMUClass( getRev_t getRevision)
2424
{
25-
//If board_revision = 0, IMU module is LSM6DSOX, otherwise is LSM6DS3
2625
board_revision = getRevision;
2726
}
2827

@@ -33,6 +32,7 @@ IMUClass::~IMUClass()
3332
int IMUClass::begin()
3433
{
3534
_revision = board_revision();
35+
// If board_revision = BOARD_REVISION_2, IMU module is LSM6DSOX, otherwise is LSM6DS3
3636
if (_revision == BOARD_REVISION_2) {
3737
LSM6DSOX = new LSM6DSOXClass(Wire, LSM6DSOX_ADDRESS);
3838
if (LSM6DSOX == nullptr) return 0;

0 commit comments

Comments
 (0)