update
This commit is contained in:
@@ -50,6 +50,31 @@ int CFingerPrint::ReadSystemParameters(uint8_t aResponse[17])
|
||||
return error;
|
||||
}
|
||||
|
||||
int CFingerPrint::SetSystemParameter(uint8_t regAddr, uint8_t value)
|
||||
{
|
||||
uint8_t aPayload[] = {
|
||||
COMMAND_SETSYSPARA,
|
||||
regAddr,
|
||||
value
|
||||
};
|
||||
|
||||
Write(IDENT_COMMAND, aPayload, sizeof(aPayload));
|
||||
|
||||
FingerPrintIdent ident;
|
||||
uint8_t aResponse[1];
|
||||
int ret = Recv(&ident, aResponse, sizeof(aResponse));
|
||||
m_RecvState = RECV_DROP;
|
||||
|
||||
if(ret < 0)
|
||||
return ret;
|
||||
|
||||
if(ident != IDENT_ACK)
|
||||
return ERROR_COMMUNICATION;
|
||||
|
||||
uint8_t error = aResponse[0];
|
||||
return error;
|
||||
}
|
||||
|
||||
int CFingerPrint::DeleteTemplate(uint16_t positionStart, uint16_t count)
|
||||
{
|
||||
uint8_t aPayload[] = {
|
||||
|
||||
Reference in New Issue
Block a user