We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d7ca0e commit 777dfc7Copy full SHA for 777dfc7
libraries/SoftwareATSE/examples/SATSECertificate/SATSECertificate.ino
@@ -67,10 +67,11 @@ void setup() {
67
}
68
69
byte buf[512];
70
- int len = 0;
+ int ret = 0;
71
72
- if((len = SATSE.readSlot(certId, buf, sizeof(buf))) > 0) {
+ if((ret = SATSE.readSlot(certId, buf, sizeof(buf))) > 0) {
73
Serial.print("Readback data is: ");
74
+ int len = (buf[2] << 8) + buf[3] + 4;
75
printBufferHex(buf, len);
76
} else {
77
Serial.println("Failed to read data");
0 commit comments