Skip to content

Commit

Permalink
[Bug] Incorrect usage of assert() (#1245)
Browse files Browse the repository at this point in the history
Ref: #1238 (comment)
X-Ref: #1232

Fixes #1244
  • Loading branch information
crankyoldgit authored Aug 16, 2020
1 parent d64f07b commit 791319e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/IRrecvDumpV2/IRrecvDumpV2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void setup() {
delay(50);
// Perform a low level sanity checks that the compiler performs bit field
// packing as we expect and Endianness is as we expect.
assert(irutils::lowLevelSanityCheck());
assert(irutils::lowLevelSanityCheck() == 0);

Serial.printf("\n" D_STR_IRRECVDUMP_STARTUP "\n", kRecvPin);
#if DECODE_HASH
Expand Down
2 changes: 1 addition & 1 deletion examples/IRrecvDumpV3/IRrecvDumpV3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void setup() {
delay(50);
// Perform a low level sanity checks that the compiler performs bit field
// packing as we expect and Endianness is as we expect.
assert(irutils::lowLevelSanityCheck());
assert(irutils::lowLevelSanityCheck() == 0);

Serial.printf("\n" D_STR_IRRECVDUMP_STARTUP "\n", kRecvPin);
OTAinit(); // setup OTA handlers and show IP
Expand Down

0 comments on commit 791319e

Please sign in to comment.