如果確實是這個函數卡住,只能在中間試試串口初始化了,畢竟用的指令太多,中間某一環丟包了就很麻煩。
void addfinger()
{
uchar IDa,IDb,IDc;//存儲返回的指紋序號
PutStr(1,2,"請按手指");
getimage();
while (querenma != 0)
getimage();
genchar(bufferID1);
UART_init();
fastsearch(bufferID1);
while (querenma == 1)
fastsearch(bufferID1);
if (querenma == 0)
{
lcdclear();
PutStr(1,1,"指紋已被錄入");
PutStr(2,1,"請按任意鍵繼續");
while(keycheck()==0);
} |