@@ -135,7 +135,7 @@ boolean ATECCX08A::getInfo()
135
135
136
136
// Now let's read back from the IC and see if it reports back good things.
137
137
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 ))
139
139
goto error;
140
140
141
141
idleMode ();
@@ -319,7 +319,7 @@ boolean ATECCX08A::updateRandom32Bytes(boolean debug)
319
319
320
320
// Now let's read back from the IC. This will be 35 bytes of data (count + 32_data_bytes + crc[0] + crc[1])
321
321
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))
323
323
goto error;
324
324
325
325
idleMode ();
@@ -650,7 +650,7 @@ boolean ATECCX08A::createNewKeyPair(uint16_t slot)
650
650
651
651
// Now let's read back from the IC.
652
652
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)
654
654
goto error;
655
655
656
656
idleMode ();
@@ -695,7 +695,7 @@ boolean ATECCX08A::generatePublicKey(uint16_t slot, boolean debug)
695
695
696
696
// Now let's read back from the IC.
697
697
// 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))
699
699
goto error;
700
700
701
701
idleMode ();
@@ -769,7 +769,7 @@ boolean ATECCX08A::read(uint8_t zone, uint16_t address, uint8_t length, boolean
769
769
delay (1 ); // time for IC to process command and exectute
770
770
771
771
// 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))
773
773
goto error;
774
774
775
775
idleMode ();
@@ -925,7 +925,7 @@ boolean ATECCX08A::signTempKey(uint16_t slot)
925
925
delay (60 ); // time for IC to process command and exectute
926
926
927
927
// 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)
929
929
goto error;
930
930
931
931
idleMode ();
0 commit comments