Skip to content

Commit 6caf892

Browse files
authored
Update bmm150_defs.h
Fixed incorrect XYZ repetition presets.
1 parent 92d4cec commit 6caf892

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/utilities/BMM150-Sensor-API/bmm150_defs.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -330,16 +330,18 @@
330330
#define BMM150_OP_MODE_POS UINT8_C(0x01)
331331

332332
/*! @name PRESET MODES - REPETITIONS-XY RATES */
333-
#define BMM150_REPXY_LOWPOWER UINT8_C(0x01)
334-
#define BMM150_REPXY_REGULAR UINT8_C(0x04)
335-
#define BMM150_REPXY_ENHANCED UINT8_C(0x07)
336-
#define BMM150_REPXY_HIGHACCURACY UINT8_C(0x17)
333+
// nXY=1+2⋅(REPXY)
334+
#define BMM150_REPXY_LOWPOWER UINT8_C(0x01) // nXY = 3
335+
#define BMM150_REPXY_REGULAR UINT8_C(0x04) // nXY = 9
336+
#define BMM150_REPXY_ENHANCED UINT8_C(0x07) // nXY = 15
337+
#define BMM150_REPXY_HIGHACCURACY UINT8_C(0x17) // nXY = 47
337338

338339
/*! @name PRESET MODES - REPETITIONS-Z RATES */
339-
#define BMM150_REPZ_LOWPOWER UINT8_C(0x01)
340-
#define BMM150_REPZ_REGULAR UINT8_C(0x07)
341-
#define BMM150_REPZ_ENHANCED UINT8_C(0x0D)
342-
#define BMM150_REPZ_HIGHACCURACY UINT8_C(0x29)
340+
// nZ=1+(REPZ)
341+
#define BMM150_REPZ_LOWPOWER UINT8_C(0x02) // nZ = 3
342+
#define BMM150_REPZ_REGULAR UINT8_C(0x0E) // nZ = 15
343+
#define BMM150_REPZ_ENHANCED UINT8_C(0x1A) // nZ = 27
344+
#define BMM150_REPZ_HIGHACCURACY UINT8_C(0x52) // nZ = 83
343345

344346
/*! @name Self test settings */
345347
#define BMM150_DISABLE_XY_AXIS UINT8_C(0x03)

0 commit comments

Comments
 (0)