|
8 | 8 | #include "utils.h"
|
9 | 9 | #include "monitor.h"
|
10 | 10 | #include "drivers/storage/storage.h"
|
| 11 | +#include "drivers/devices/device.h" |
11 | 12 |
|
12 | 13 | extern uint32_t templates;
|
13 | 14 | extern uint32_t hashes;
|
@@ -46,7 +47,7 @@ void setup_monitor(void){
|
46 | 47 | timeClient.setTimeOffset(3600 * Settings.Timezone);
|
47 | 48 |
|
48 | 49 | Serial.println("TimeClient setup done");
|
49 |
| -#ifdef NERDMINER_T_HMI |
| 50 | +#ifdef SCREEN_WORKERS_ENABLE |
50 | 51 | poolAPIUrl = getPoolAPIUrl();
|
51 | 52 | Serial.println("poolAPIUrl: " + poolAPIUrl);
|
52 | 53 | #endif
|
@@ -98,7 +99,7 @@ void updateGlobalData(void){
|
98 | 99 | deserializeJson(doc, payload);
|
99 | 100 | String temp = "";
|
100 | 101 | if (doc.containsKey("halfHourFee")) gData.halfHourFee = doc["halfHourFee"].as<int>();
|
101 |
| -#ifdef NERDMINER_T_HMI |
| 102 | +#ifdef SCREEN_FEES_ENABLE |
102 | 103 | if (doc.containsKey("fastestFee")) gData.fastestFee = doc["fastestFee"].as<int>();
|
103 | 104 | if (doc.containsKey("hourFee")) gData.hourFee = doc["hourFee"].as<int>();
|
104 | 105 | if (doc.containsKey("economyFee")) gData.economyFee = doc["economyFee"].as<int>();
|
@@ -305,7 +306,7 @@ coin_data getCoinData(unsigned long mElapsed)
|
305 | 306 | data.currentHashRate = getCurrentHashRate(mElapsed);
|
306 | 307 | data.btcPrice = getBTCprice();
|
307 | 308 | data.currentTime = getTime();
|
308 |
| -#ifdef NERDMINER_T_HMI |
| 309 | +#ifdef SCREEN_FEES_ENABLE |
309 | 310 | data.hourFee = String(gData.hourFee);
|
310 | 311 | data.fastestFee = String(gData.fastestFee);
|
311 | 312 | data.economyFee = String(gData.economyFee);
|
@@ -364,7 +365,7 @@ pool_data getPoolData(void){
|
364 | 365 | String btcWallet = Settings.BtcWallet;
|
365 | 366 | // Serial.println(btcWallet);
|
366 | 367 | if (btcWallet.indexOf(".")>0) btcWallet = btcWallet.substring(0,btcWallet.indexOf("."));
|
367 |
| -#ifdef NERDMINER_T_HMI |
| 368 | +#ifdef SCREEN_WORKERS_ENABLE |
368 | 369 | Serial.println("Pool API : " + poolAPIUrl+btcWallet);
|
369 | 370 | http.begin(poolAPIUrl+btcWallet);
|
370 | 371 | #else
|
|
0 commit comments