Skip to content

Commit 6c8fb78

Browse files
committed
delete comment out
1 parent d7c9cf2 commit 6c8fb78

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/SparkFun_Bio_Sensor_Hub_Library.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ uint8_t SparkFun_Bio_Sensor_Hub::accelControl(uint8_t accelSwitch) {
672672
// Write Byte : outputType (Parameter values in OUTPUT_MODE_WRITE_BYTE)
673673
uint8_t SparkFun_Bio_Sensor_Hub::setOutputMode(uint8_t outputType) {
674674

675-
// if (outputType < PAUSE || outputType > SENSOR_ALGO_COUNTER) // Bytes between 0x00 and 0x07
676675
if ( outputType > SENSOR_ALGO_COUNTER ) // Bytes between 0x00 and 0x07
677676
return INCORR_PARAM;
678677

@@ -693,9 +692,6 @@ uint8_t SparkFun_Bio_Sensor_Hub::setOutputMode(uint8_t outputType) {
693692
// (begin).
694693
uint8_t SparkFun_Bio_Sensor_Hub::setFifoThreshold(uint8_t intThresh) {
695694

696-
// if(( intThresh < 0 )||( intThresh > 255 ))
697-
// return INCORR_PARAM;
698-
699695
// Checks that there was succesful communcation, not that the threshold was
700696
// set correctly.
701697
uint8_t statusByte = writeByte(OUTPUT_MODE, WRITE_SET_THRESHOLD, intThresh);
@@ -849,7 +845,6 @@ uint8_t* SparkFun_Bio_Sensor_Hub::dumpRegisterAccelerometer(uint8_t numReg, uint
849845
// 100 percent.
850846
uint8_t SparkFun_Bio_Sensor_Hub::setAlgoRange(uint8_t perc) {
851847

852-
// if( perc < 0 || perc > 100)
853848
if( perc > 100)
854849
return INCORR_PARAM;
855850

@@ -868,7 +863,6 @@ uint8_t SparkFun_Bio_Sensor_Hub::setAlgoRange(uint8_t perc) {
868863
// It takes a paramater of zero to 100 percent.
869864
uint8_t SparkFun_Bio_Sensor_Hub::setAlgoStepSize(uint8_t step) {
870865

871-
// if( step < 0 || step > 100)
872866
if( step > 100 )
873867
return INCORR_PARAM;
874868

@@ -886,7 +880,6 @@ uint8_t SparkFun_Bio_Sensor_Hub::setAlgoStepSize(uint8_t step) {
886880
// This function changes the sensitivity of the AGC algorithm.
887881
uint8_t SparkFun_Bio_Sensor_Hub::setAlgoSensitivity(uint8_t sense) {
888882

889-
// if( sense < 0 || sense > 100 )
890883
if( sense > 100 )
891884
return INCORR_PARAM;
892885

@@ -905,9 +898,6 @@ uint8_t SparkFun_Bio_Sensor_Hub::setAlgoSensitivity(uint8_t sense) {
905898
// It takes a paramater of zero to 255.
906899
uint8_t SparkFun_Bio_Sensor_Hub::setAlgoSamples(uint8_t avg) {
907900

908-
// if( avg < 0 || avg > 255 )
909-
// return INCORR_PARAM;
910-
911901
// Successful communication or no?
912902
uint8_t statusByte = writeByte(CHANGE_ALGORITHM_CONFIG, SET_AVG_SAMPLES, AGC_SENSITIVITY_ID, avg);
913903
if( statusByte != SUCCESS )

0 commit comments

Comments
 (0)