Skip to content

Commit

Permalink
Update DuinoCoin_Wire.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
JK-Rolling authored Sep 27, 2021
1 parent c632204 commit 4c68d22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DuinoCoin_RPI_Arduino_Slave/DuinoCoin_Wire.ino
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ bool DuinoCoin_loop()
unsigned long endTime = micros();
// Calculate elapsed time
unsigned long elapsedTime = endTime - startTime;
if (ducos1result == 1) elapsedTime = 5128;
// Send result back to the program with share time
while (bufferRequest.available()) bufferRequest.read();
bufferRequest.print(String(ducos1result) + "," + String(elapsedTime) + "," + String(get_DUCOID()) + "\n");
Expand Down

0 comments on commit 4c68d22

Please sign in to comment.