This commit is contained in:
elmo128 2023-09-18 02:32:34 +02:00
parent 40cb44509b
commit 971613ebce
2 changed files with 3 additions and 4 deletions

View File

@ -29,13 +29,11 @@ uint32_t valids; // increased if blockhash <= target
double best_diff = 0.0; double best_diff = 0.0;
// Variables to hold data from custom textboxes // Variables to hold data from custom textboxes
//Track mining stats in non volatile memory
extern TSettings Settings; extern TSettings Settings;
IPAddress serverIP(1, 1, 1, 1); //Temporally save poolIPaddres IPAddress serverIP(1, 1, 1, 1); //Temporally save poolIPaddres
//Track mining stats in non volatile memory
extern TSettings Settings;
//Global work data //Global work data
static WiFiClient client; static WiFiClient client;
static miner_data mMiner; //Global miner data (Create a miner class TODO) static miner_data mMiner; //Global miner data (Create a miner class TODO)

View File

@ -23,7 +23,8 @@ extern double best_diff; // track best diff
extern monitor_data mMonitor; extern monitor_data mMonitor;
extern TSettings Settings; //Gotten from saved config //from saved config
extern TSettings Settings;
WiFiUDP ntpUDP; WiFiUDP ntpUDP;
NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000); NTPClient timeClient(ntpUDP, "europe.pool.ntp.org", 3600, 60000);