![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is probably never gonna get done
Diff: main.cpp
- Revision:
- 30:1405ab394f02
- Parent:
- 29:cb4db90cfd63
- Child:
- 31:6ace72e12705
--- a/main.cpp Fri Mar 22 20:28:28 2019 +0000 +++ b/main.cpp Fri Mar 22 23:53:28 2019 +0000 @@ -118,6 +118,7 @@ INVALID_CMD = 10, MOTOR_POS = 11, MOTOR_SPEED = 12, +HASH = 13, NONCE_DETECT = 14, @@ -178,6 +179,9 @@ case ROTOR_ORG : pc.printf("Rotor origin: %x\n\r", orState); break; + case HASH : + pc.printf("Hash rate: %f\n\r", mail->data); + break; } mail_box.free(mail); @@ -358,8 +362,7 @@ putMessage(NONCE_DETECT, *nonce); } if ((unsigned) t.read() == currentTime) { - //pc.printf("Hash rate: %d\n\r", i - currentCount); - //pc.printf("Current key: %016llx\n\r", *key); + putMessage(HASH, i - currentCount); currentTime++; currentCount = i; }