Skip to content

Commit

Permalink
Removed unsued variables
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarna84 committed Dec 27, 2024
1 parent 4c321a0 commit 5f7749a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ecgRespirationAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ void ecg_respiration_algorithm :: QRS_check_sample_crossing_threshold( uint16_t
static unsigned int nopeak = 0;
uint16_t Max = 0 ;
uint16_t HRAvg;
uint16_t RRinterval = 0;


if ( TRUE == threshold_crossed )
{
Expand Down Expand Up @@ -390,11 +390,11 @@ void ecg_respiration_algorithm :: Resp_FilterProcess(int16_t * RESP_WorkingBuff,

int16_t ecg_respiration_algorithm :: Resp_ProcessCurrSample(int16_t CurrAqsSample)
{
static uint16_t bufStart=0, bufCur = FILTERORDER-1, FirstFlag = 1;
static uint16_t bufStart=0, bufCur = FILTERORDER-1;
int16_t temp1, temp2;//, RESPData;
int16_t RESPData;
/* Count variable*/
uint16_t Cur_Chan;

int16_t FiltOut;
temp1 = NRCOEFF * Pvev_DC_Sample;
Pvev_DC_Sample = (CurrAqsSample - Pvev_Sample) + temp1;
Expand Down
2 changes: 1 addition & 1 deletion src/protocentralAds1292r.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void ads1292r::ads1292StopReadDataContinuous (const int chipSelect)

void ads1292r::ads1292SPICommandData(unsigned char dataIn,const int chipSelect)
{
byte data[1];
//byte data[1];
//data[0] = dataIn;
digitalWrite(chipSelect, LOW);
delay(2);
Expand Down

0 comments on commit 5f7749a

Please sign in to comment.