From 30ee3f9dbba064ce5a88f0e1a0f875bd4130f43f Mon Sep 17 00:00:00 2001 From: Skot Croshere Date: Wed, 31 May 2023 22:56:41 -0400 Subject: [PATCH] DEFAULT_JOB_TIMEOUT comment --- main/miner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/miner.c b/main/miner.c index dc026308..edc5b49c 100755 --- a/main/miner.c +++ b/main/miner.c @@ -114,7 +114,7 @@ static void AsicTask(void * pvParameters) send_work(&job); //send the job to the ASIC //wait for a response - int received = serial_rx(buf, 9, DEFAULT_JOB_TIMEOUT); //TODO: this timeout should be related to the hash frequency + int received = serial_rx(buf, 9, DEFAULT_JOB_TIMEOUT); //TODO: this timeout should be 2^32/hashrate if (received < 0) { ESP_LOGI(TAG, "Error in serial RX");