Skip to content

Commit 2acd18d

Browse files
authored
Merge pull request #8 from sparkfun/Correct_setAccelSlopeFilter
Correct setAccelSlopeFilter
2 parents 0e1d6c2 + 74d0982 commit 2acd18d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun 6DoF ISM330DHCX
2-
version=1.0.5
2+
version=1.0.6
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=This library is for the SparkFun Qwiic and Qwiic Micro, 6DoF ISM330DHCX breakout board.

src/sfe_ism330dhcx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,14 +535,14 @@ bool QwDevISM330DHCX::getDeviceReset()
535535
//
536536
// Parameter Description
537537
// --------- -----------------------------
538-
// val This parameter determines the intensity of the filter - (0-7)
538+
// val This parameter determines the intensity of the filter - (0x00 - 0x37)
539539
//
540540
// See sfe_ism330dhcx_defs.h for a list of valid arguments
541541

542542
bool QwDevISM330DHCX::setAccelSlopeFilter(uint8_t val)
543543
{
544544
int32_t retVal;
545-
if( val > 7 )
545+
if( val > 0x37 )
546546
return false;
547547

548548
retVal = ism330dhcx_xl_hp_path_on_out_set(&sfe_dev,

0 commit comments

Comments
 (0)