Skip to content

Commit

Permalink
Merge pull request #43 from dvarrel/master
Browse files Browse the repository at this point in the history
warning: 'B0011110' is deprecated: use 0b0011110 instead
  • Loading branch information
per1234 authored Nov 7, 2022
2 parents e35da90 + a23cbe4 commit a8dacd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SigFox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ int SIGFOXClass::send(unsigned char mess[], int len, bool rx)
}

int SIGFOXClass::sendBit(bool value){
int ret;
int i = 0;
status();

Expand Down Expand Up @@ -379,7 +378,7 @@ char* SIGFOXClass::status(Protocol type)
char* SIGFOXClass::getStatusAtm()
{
buffer[0] = '\0';
byte err = (atm & B0011110) >> 1;
byte err = (atm & 0b0011110) >> 1;
char pa[10]; pa[0] = '\0';
if (bitRead(atm, 0) == 1) strcpy(pa, "PA ON"); else strcpy(pa, "PA OFF");
if (err > 0)
Expand Down

0 comments on commit a8dacd2

Please sign in to comment.