Skip to content

Commit a8dacd2

Browse files
authored
Merge pull request #43 from dvarrel/master
warning: 'B0011110' is deprecated: use 0b0011110 instead
2 parents e35da90 + a23cbe4 commit a8dacd2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SigFox.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ int SIGFOXClass::send(unsigned char mess[], int len, bool rx)
213213
}
214214

215215
int SIGFOXClass::sendBit(bool value){
216-
int ret;
217216
int i = 0;
218217
status();
219218

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

0 commit comments

Comments
 (0)