Skip to content

Commit 320ad48

Browse files
committed
add updates from pending pull requests
1 parent 8cf2404 commit 320ad48

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/SparkFun_TMAG5273_Arduino_Library.cpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ int8_t TMAG5273::begin(uint8_t sensorAddress, TwoWire &wirePort)
4848
setTemperatureEn(true);
4949
setOperatingMode(TMAG5273_CONTINUOUS_MEASURE_MODE);
5050

51+
// 12/2025 - add as part of update -- from a PR pending on the repo
52+
setAngleEn(TMAG5273_NO_ANGLE_CALCULATION);
53+
setLowPower(TMAG5273_LOW_ACTIVE_CURRENT_MODE);
54+
5155
// Set the axis ranges for the device to be the largest
5256
setXYAxisRange(TMAG5273_RANGE_80MT);
5357
setZAxisRange(TMAG5273_RANGE_80MT);
@@ -72,9 +76,10 @@ int8_t TMAG5273::begin(uint8_t sensorAddress, TwoWire &wirePort)
7276
if (getTemperatureEN() != TMAG5273_TEMPERATURE_ENABLE)
7377
return 0;
7478

75-
// Check that X and Y angle calculation is disabled
76-
if (getAngleEn() != TMAG5273_NO_ANGLE_CALCULATION)
77-
return 0;
79+
// 12/2025 - removed as part of update -- from a PR pending on the repo
80+
// // Check that X and Y angle calculation is disabled
81+
// if (getAngleEn() != TMAG5273_NO_ANGLE_CALCULATION)
82+
// return 0;
7883

7984
// returns true if all the checks pass
8085
return 1;

0 commit comments

Comments
 (0)