adafruit / Adafruit-Fingerprint-Sensor-Library

Arduino library for interfacing to the fingerprint sensor in the Adafruit shop
http://www.adafruit.com/products/751
Other
417 stars 340 forks source link

arduino issue #101

Closed niko9996333 closed 3 years ago

niko9996333 commented 3 years ago

After putting the latest library to my arduino, arduino can't verify the enroll example. Here're the output. C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp: In member function 'uint8_t Adafruit_Fingerprint::setPassword(uint32_t)': C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:54: warning: narrowing conversion of '(password >> 24)' from 'uint32_t {aka long unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing] SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),


C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:37:21: note: in definition of macro 'GET_CMD_PACKET'
   uint8_t data[] = {__VA_ARGS__};                                              \
                     ^~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:3: note: in expansion of macro 'SEND_CMD_PACKET'
   SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
   ^~~~~~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:72: warning: narrowing conversion of '(password >> 16)' from 'uint32_t {aka long unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
   SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
                                                              ~~~~~~~~~~^~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:37:21: note: in definition of macro 'GET_CMD_PACKET'
   uint8_t data[] = {__VA_ARGS__};                                              \
                     ^~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:3: note: in expansion of macro 'SEND_CMD_PACKET'
   SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
   ^~~~~~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:416:29: warning: narrowing conversion of '(password >> 8)' from 'uint32_t {aka long unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
                   (password >> 8), password);
                   ~~~~~~~~~~^~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:37:21: note: in definition of macro 'GET_CMD_PACKET'
   uint8_t data[] = {__VA_ARGS__};                                              \
                     ^~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:3: note: in expansion of macro 'SEND_CMD_PACKET'
   SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
   ^~~~~~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:37:32: warning: narrowing conversion of 'password' from 'uint32_t {aka long unsigned int}' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
   uint8_t data[] = {__VA_ARGS__};                                              \
                                ^
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:50:3: note: in expansion of macro 'GET_CMD_PACKET'
   GET_CMD_PACKET(__VA_ARGS__);                                                 \
   ^~~~~~~~~~~~~~
C:\Users\Y\Documents\Arduino\libraries\Adafruit-Fingerprint-Sensor-Library-master\Adafruit_Fingerprint.cpp:415:3: note: in expansion of macro 'SEND_CMD_PACKET'
   SEND_CMD_PACKET(FINGERPRINT_SETPASSWORD, (password >> 24), (password >> 16),
   ^~~~~~~~~~~~~~~
ladyada commented 3 years ago

these are warnings not errors. if you need help with compiling arduino libraries please post to the arduino forum. if you find an actual error please re-open! thanx