我疯了。我知道循环已进入,但必须有一些我正在做的事情,以防止中断退出for循环。有什么想法吗?
for (int j = 0; j < 12; j++) {
if (users[i][1][j] != arr[j]){
Serial.println("Mismatch");
break;
}
else if (j == 11){
Serial.println("Entire card read correctly");
return i;
}
}
答案 0 :(得分:0)
The code was being reentered from an outside loop.