Merge pull request #9830 from Staars/development

Fingerprint library: add missing casts to silence compiler warnings
This commit is contained in:
Theo Arends 2020-11-13 08:51:12 +01:00 committed by GitHub
commit 747974cd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -368,8 +368,8 @@ uint8_t Adafruit_Fingerprint::LEDcontrol(uint8_t control, uint8_t speed,
/**************************************************************************/
uint8_t Adafruit_Fingerprint::fingerSearch(uint8_t slot) {
// search of slot starting thru the capacity
GET_CMD_PACKET(FINGERPRINT_SEARCH, slot, 0x00, 0x00, capacity >> 8,
capacity & 0xFF);
GET_CMD_PACKET(FINGERPRINT_SEARCH, slot, 0x00, 0x00, (uint8_t)(capacity >> 8),
(uint8_t)(capacity & 0xFF));
fingerID = 0xFFFF;
confidence = 0xFFFF;
@ -413,8 +413,8 @@ 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);
}
/**************************************************************************/