Added return value for atsha204_getSerialNumber (#487)
Also cleaned up trailing whitespaces.
This commit is contained in:
@@ -571,7 +571,7 @@ uint8_t atsha204_execute(uint8_t op_code, uint8_t param1, uint16_t param2,
|
||||
&rx_buffer[0], poll_delay, poll_timeout);
|
||||
}
|
||||
|
||||
void atsha204_getSerialNumber(uint8_t * response)
|
||||
uint8_t atsha204_getSerialNumber(uint8_t * response)
|
||||
{
|
||||
uint8_t readCommand[READ_COUNT];
|
||||
uint8_t readResponse[READ_4_RSP_SIZE];
|
||||
@@ -596,5 +596,5 @@ void atsha204_getSerialNumber(uint8_t * response)
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
return returnCode;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ uint8_t atsha204_wakeup(uint8_t *response);
|
||||
uint8_t atsha204_execute(uint8_t op_code, uint8_t param1, uint16_t param2,
|
||||
uint8_t datalen1, uint8_t *data1, uint8_t tx_size,
|
||||
uint8_t *tx_buffer, uint8_t rx_size, uint8_t *rx_buffer);
|
||||
void atsha204_getSerialNumber(uint8_t *response);
|
||||
uint8_t atsha204_getSerialNumber(uint8_t *response);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user