Skip to content

Commit 0396338

Browse files
committed
Fixes typos in example3 and fixes HEX value for setAlgoSamples
1 parent 0015d81 commit 0396338

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/Example3_modify_AGC_Algo/Example3_modify_AGC_Algo.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void setup(){
6262
Serial.println("Sensor started!");
6363

6464
// Adjusting the Automatic Gain Control (AGC) Algorithm
65-
int error = bioHub.setAlgoRange(algoRange));
65+
int error = bioHub.setAlgoRange(algoRange);
6666
if (error > 0){
6767
Serial.println("Could not set algorithm's Range.");
6868
}
@@ -99,7 +99,7 @@ void setup(){
9999
Serial.print("Algorithm set to: ");
100100
Serial.println(sampVal);
101101

102-
Serial.println("Configuing Sensor.");
102+
Serial.println("Configuring Sensor.");
103103
error = bioHub.configBpm(MODE_ONE);
104104
if (error > 0){
105105
Serial.println("Could not configure the sensor.");

src/SparkFun_Bio_Sensor_Hub_Library.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ uint8_t SparkFun_Bio_Sensor_Hub::setAlgoSensitivity(uint8_t sense) {
899899
uint8_t SparkFun_Bio_Sensor_Hub::setAlgoSamples(uint8_t avg) {
900900

901901
// Successful communication or no?
902-
uint8_t statusByte = writeByte(CHANGE_ALGORITHM_CONFIG, SET_AVG_SAMPLES, AGC_SENSITIVITY_ID, avg);
902+
uint8_t statusByte = writeByte(CHANGE_ALGORITHM_CONFIG, SET_AVG_SAMPLES, AGC_NUM_SAMP_ID, avg);
903903
if( statusByte != SUCCESS )
904904
return statusByte;
905905
else

0 commit comments

Comments
 (0)