Skip to content

Commit 713e20c

Browse files
committed
Cosmetics changes: remove empty lines
1 parent 747d207 commit 713e20c

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

firmware/provision/CryptoProvision/CryptoProvision.ino

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ void processCommand() {
241241
Serial1.print("%%%%% ");
242242
Serial1.println(">> processing command");
243243
COMMAND cmdCode = (COMMAND)payloadBuffer[0];
244+
244245
if (cmdCode == COMMAND::GET_SKETCH_INFO) {
245246
Serial1.println("get sketch info");
246247
char response[] = {char(RESPONSE::RESPONSE_ACK)};
247248
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
248249
}
249-
250250
if (cmdCode == COMMAND::GET_CSR) {
251251
// extract payload from [1] to [payloadLength]
252252
// this will be the device_id used to generate a valid CSR
@@ -300,8 +300,6 @@ void processCommand() {
300300
char response[] = {char(RESPONSE::RESPONSE_ACK)};
301301
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
302302
}
303-
304-
305303
if (cmdCode == COMMAND::SET_YEAR) {
306304
Serial1.println("set year");
307305
char yearBytes[4];
@@ -324,7 +322,6 @@ void processCommand() {
324322

325323
char response[] = {char(RESPONSE::RESPONSE_ACK)};
326324
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
327-
328325
}
329326
if (cmdCode == COMMAND::SET_MONTH) {
330327
Serial1.println("set month");
@@ -348,9 +345,7 @@ void processCommand() {
348345

349346
char response[] = {char(RESPONSE::RESPONSE_ACK)};
350347
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
351-
352348
}
353-
354349
if (cmdCode == COMMAND::SET_DAY) {
355350
Serial1.println("set day");
356351
char dayBytes[4];
@@ -373,9 +368,7 @@ void processCommand() {
373368

374369
char response[] = {char(RESPONSE::RESPONSE_ACK)};
375370
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
376-
377371
}
378-
379372
if (cmdCode == COMMAND::SET_HOUR) {
380373
Serial1.println("set hour");
381374
char hourBytes[4];
@@ -398,9 +391,7 @@ void processCommand() {
398391

399392
char response[] = {char(RESPONSE::RESPONSE_ACK)};
400393
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
401-
402394
}
403-
404395
if (cmdCode == COMMAND::SET_VALIDITY) {
405396
Serial1.println("set validity");
406397
char validityBytes[4];
@@ -423,9 +414,7 @@ void processCommand() {
423414

424415
char response[] = {char(RESPONSE::RESPONSE_ACK)};
425416
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
426-
427417
}
428-
429418
if (cmdCode == COMMAND::SET_CERT_SERIAL) {
430419
// extract payload from [1] to [payloadLength]
431420
// this will be the certificate serial number included in the device certificate
@@ -526,8 +515,6 @@ void processCommand() {
526515
char response[] = {char(RESPONSE::RESPONSE_ACK)};
527516
sendData(MESSAGE_TYPE::RESPONSE, response, 1);
528517
}
529-
530-
531518
if (cmdCode == COMMAND::RECONSTRUCT_CERT) {
532519

533520
if (!Cert.begin()) {
@@ -556,7 +543,6 @@ void processCommand() {
556543
Serial1.print('0');
557544
}
558545
Serial1.print(b, HEX);
559-
560546
}
561547
Serial1.println();
562548
char response[] = {char(RESPONSE::RESPONSE_ACK)};

0 commit comments

Comments
 (0)