Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 删除cpp实现方法默认值(以适配新版本编译规则) #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kongsiyu
Copy link

No description provided.

@kongsiyu
Copy link
Author

你好,当前代码编译时候报错,原因如标题,我删除了实现方法定义的默认值已经解决问题,错误如下:

error: default argument given for parameter 2 of 'uint8_t* YFROBOTFPM383::autoEnroll(uint16_t, uint8_t)' [-fpermissive]
227 | uint8_t * YFROBOTFPM383::autoEnroll(uint16_t PageID, uint8_t entriesCount = 4)
| ^~~~~~~~~~~~~
In file included from d:\Documents\Arduino\libraries\Yfrobot_Fingerprint_Identification_Sensor_Library\src\yfrobot_fpm383.cpp:10:
d:\Documents\Arduino\libraries\Yfrobot_Fingerprint_Identification_Sensor_Library\src\yfrobot_fpm383.h:116:15: note: previous specification in 'uint8_t* YFROBOTFPM383::autoEnroll(uint16_t, uint8_t)' here
116 | uint8_t * autoEnroll(uint16_t PageID, uint8_t entriesCount = 4);
| ^~~~~~~~~~
d:\Documents\Arduino\libraries\Yfrobot_Fingerprint_Identification_Sensor_Library\src\yfrobot_fpm383.cpp:252:9: error: default argument given for parameter 2 of 'uint8_t YFROBOTFPM383::enroll(uint16_t, uint8_t)' [-fpermissive]
252 | uint8_t YFROBOTFPM383::enroll(uint16_t PageID, uint8_t entriesCount = 4)
| ^~~~~~~~~~~~~
In file included from d:\Documents\Arduino\libraries\Yfrobot_Fingerprint_Identification_Sensor_Library\src\yfrobot_fpm383.cpp:10:
d:\Documents\Arduino\libraries\Yfrobot_Fingerprint_Identification_Sensor_Library\src\yfrobot_fpm383.h:118:13: note: previous specification in 'uint8_t YFROBOTFPM383::enroll(uint16_t, uint8_t)' here
118 | uint8_t enroll(uint16_t PageID, uint8_t entriesCount = 4);
| ^~~~~~

exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant