Skip to content

Commit

Permalink
compilation error cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
MishalJasmine committed Dec 10, 2024
1 parent e25d16d commit 9837a8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protocentral_ads1293.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ void ads1293::disableFilterAllChannels(){

bool ads1293::disableFilter(uint8_t channel){

if(channel > 3 || channel < 0){
if(channel > 3){
Serial.println("Wrong channel error!");
return false;
}
Expand All @@ -250,6 +250,7 @@ bool ads1293::disableFilter(uint8_t channel){
channelBitMask = channelBitMask << (channel-1);
ads1293WriteRegister(DIS_EFILTER, channelBitMask);
delay(1);
return true;
}


Expand Down

0 comments on commit 9837a8d

Please sign in to comment.