Skip to content

Commit 352256b

Browse files
Some more changes to styling
1 parent 7156126 commit 352256b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SparkFun_ATECCX08a_Arduino_Library.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ boolean ATECCX08A::getInfo()
135135

136136
// Now let's read back from the IC and see if it reports back good things.
137137
countGlobal = 0;
138-
if (receiveResponseData(RESPONSE_COUNT_SIZE + RESPONSE_INFO_SIZE + CRC_SIZE, true) == false)
138+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + RESPONSE_INFO_SIZE + CRC_SIZE, true))
139139
goto error;
140140

141141
idleMode();
@@ -319,7 +319,7 @@ boolean ATECCX08A::updateRandom32Bytes(boolean debug)
319319

320320
// Now let's read back from the IC. This will be 35 bytes of data (count + 32_data_bytes + crc[0] + crc[1])
321321

322-
if (receiveResponseData(RESPONSE_COUNT_SIZE + RESPONSE_RANDOM_SIZE + CRC_SIZE, debug) == false)
322+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + RESPONSE_RANDOM_SIZE + CRC_SIZE, debug))
323323
goto error;
324324

325325
idleMode();
@@ -650,7 +650,7 @@ boolean ATECCX08A::createNewKeyPair(uint16_t slot)
650650

651651
// Now let's read back from the IC.
652652

653-
if (receiveResponseData(RESPONSE_COUNT_SIZE + PUBLIC_KEY_SIZE + CRC_SIZE) == false) // public key (64), plus crc (2), plus count (1)
653+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + PUBLIC_KEY_SIZE + CRC_SIZE)) // public key (64), plus crc (2), plus count (1)
654654
goto error;
655655

656656
idleMode();
@@ -695,7 +695,7 @@ boolean ATECCX08A::generatePublicKey(uint16_t slot, boolean debug)
695695

696696
// Now let's read back from the IC.
697697
// public key (64), plus crc (2), plus count (1)
698-
if (receiveResponseData(RESPONSE_COUNT_SIZE + PUBLIC_KEY_SIZE + CRC_SIZE) == false)
698+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + PUBLIC_KEY_SIZE + CRC_SIZE))
699699
goto error;
700700

701701
idleMode();
@@ -769,7 +769,7 @@ boolean ATECCX08A::read(uint8_t zone, uint16_t address, uint8_t length, boolean
769769
delay(1); // time for IC to process command and exectute
770770

771771
// Now let's read back from the IC. ( + CRC_SIZE + count)
772-
if (receiveResponseData(RESPONSE_COUNT_SIZE + length + CRC_SIZE, debug) == false)
772+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + length + CRC_SIZE, debug))
773773
goto error;
774774

775775
idleMode();
@@ -925,7 +925,7 @@ boolean ATECCX08A::signTempKey(uint16_t slot)
925925
delay(60); // time for IC to process command and exectute
926926

927927
// Now let's read back from the IC.
928-
if (receiveResponseData(RESPONSE_COUNT_SIZE + SIGNATURE_SIZE + CRC_SIZE) == false) // signature (64), plus crc (2), plus count (1)
928+
if (!receiveResponseData(RESPONSE_COUNT_SIZE + SIGNATURE_SIZE + CRC_SIZE)) // signature (64), plus crc (2), plus count (1)
929929
goto error;
930930

931931
idleMode();

0 commit comments

Comments
 (0)