fix another pointer error

This commit is contained in:
Georges Palauqui 2024-06-18 08:12:17 +02:00
parent 00a3a0ba3d
commit 5cf16e1bcf
No known key found for this signature in database
GPG Key ID: 1E45F544CE4D04A5

View File

@ -168,7 +168,7 @@ void stratum_task(void * pvParameters)
free(line);
if (stratum_api_v1_message.method == MINING_NOTIFY) {
SYSTEM_notify_new_ntime(&GLOBAL_STATE->SYSTEM_MODULE, stratum_api_v1_message.mining_notification->ntime);
SYSTEM_notify_new_ntime(GLOBAL_STATE, stratum_api_v1_message.mining_notification->ntime);
if (stratum_api_v1_message.should_abandon_work &&
(GLOBAL_STATE->stratum_queue.count > 0 || GLOBAL_STATE->ASIC_jobs_queue.count > 0)) {
ESP_LOGI(TAG, "abandoning work");