Skip to content

Commit

Permalink
Merge pull request #102 from caternuson/fix_warn
Browse files Browse the repository at this point in the history
Add casts to fix warns
  • Loading branch information
ladyada authored Oct 9, 2021
2 parents 8d45359 + 83711f6 commit 0935639
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Adafruit_Fingerprint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,9 @@ uint8_t Adafruit_Fingerprint::getTemplateCount(void) {
*/
/**************************************************************************/
uint8_t Adafruit_Fingerprint::setPassword(uint32_t password) {
SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
(password >> 8), password);
SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (uint8_t)(password >> 24),
(uint8_t)(password >> 16), (uint8_t)(password >> 8),
(uint8_t)(password & 0xFF));
}

/**************************************************************************/
Expand Down

0 comments on commit 0935639

Please sign in to comment.