Merge pull request #230 from arcsin3x/patch-1

Update monitor.cpp
This commit is contained in:
BitMaker 2023-11-27 22:41:40 +01:00 committed by GitHub
commit 81e933afbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ String getBTCprice(void){
DynamicJsonDocument doc(1024); DynamicJsonDocument doc(1024);
deserializeJson(doc, payload); deserializeJson(doc, payload);
if (doc.containsKey("bitcoin")) bitcoin_price = doc["bitcoin"]["usd"]; if (doc.containsKey("bitcoin")) bitcoin_price = doc["last_trade_price"];
doc.clear(); doc.clear();
@ -341,4 +341,4 @@ pool_data getPoolData(void){
} }
} }
return pData; return pData;
} }