File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -728,6 +728,7 @@ void loop() {
728
728
729
729
MiningJob job;
730
730
job.parse ((char *)client_buffer.c_str ());
731
+ difficulty = job.difficulty ;
731
732
732
733
Serial.println (" Parsed job: " + job.last_block_hash + " " + job.expected_hash_str + " " + String (job.difficulty ));
733
734
@@ -741,7 +742,7 @@ void loop() {
741
742
742
743
String result = " " ;
743
744
if (LED_BLINKING) digitalWrite (LED_BUILTIN, LOW);
744
- for (unsigned int duco_numeric_result = 0 ; duco_numeric_result < difficulty; duco_numeric_result++) {
745
+ for (unsigned int duco_numeric_result = 0 ; duco_numeric_result < job. difficulty ; duco_numeric_result++) {
745
746
// Difficulty loop
746
747
sha1_ctx = sha1_ctx_base;
747
748
duco_numeric_result_str = String (duco_numeric_result);
You can’t perform that action at this time.
0 commit comments