From 971613ebcee9669aae3abb6d70bef32fb51cbdc1 Mon Sep 17 00:00:00 2001 From: elmo128 <60213508+elmo128@users.noreply.github.com> Date: Mon, 18 Sep 2023 02:32:34 +0200 Subject: [PATCH] fix --- src/mining.cpp | 4 +--- src/monitor.cpp | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mining.cpp b/src/mining.cpp index 63c1004..d6f5694 100644 --- a/src/mining.cpp +++ b/src/mining.cpp @@ -29,13 +29,11 @@ uint32_t valids; // increased if blockhash <= target double best_diff = 0.0; // Variables to hold data from custom textboxes +//Track mining stats in non volatile memory extern TSettings Settings; IPAddress serverIP(1, 1, 1, 1); //Temporally save poolIPaddres -//Track mining stats in non volatile memory -extern TSettings Settings; - //Global work data static WiFiClient client; static miner_data mMiner; //Global miner data (Create a miner class TODO) diff --git a/src/monitor.cpp b/src/monitor.cpp index 4b33a00..04c6eb8 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -23,7 +23,8 @@ extern double best_diff; // track best diff extern monitor_data mMonitor; -extern TSettings Settings; //Gotten from saved config +//from saved config +extern TSettings Settings; WiFiUDP ntpUDP; NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);