Skip to content

Commit 757fb28

Browse files
committed
Remove Cert.begin() usless call and add missing debug print about received cmdCode
1 parent 713e20c commit 757fb28

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

firmware/provision/CryptoProvision/CryptoProvision.ino

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -516,14 +516,7 @@ void processCommand() {
516516
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
517517
}
518518
if (cmdCode == COMMAND::RECONSTRUCT_CERT) {
519-
520-
if (!Cert.begin()) {
521-
Serial1.println("Error starting Crypto cert reconstruction!");
522-
char response[] = {char(RESPONSE::RESPONSE_ERROR)};
523-
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
524-
return;
525-
}
526-
519+
Serial1.println("reconstruct certificate");
527520
if (!Crypto.readCert(Cert, CryptoSlot::CompressedCertificate)) {
528521
Serial1.println("Error reconstructing Crypto cert!");
529522
char response[] = {char(RESPONSE::RESPONSE_ERROR)};

0 commit comments

Comments
 (0)