Skip to content

Commit

Permalink
Merge pull request #230 from arcsin3x/patch-1
Browse files Browse the repository at this point in the history
Update monitor.cpp
  • Loading branch information
BitMaker-hub authored Nov 27, 2023
2 parents 5c661ea + d50227d commit 81e933a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ String getBTCprice(void){

DynamicJsonDocument doc(1024);
deserializeJson(doc, payload);
if (doc.containsKey("bitcoin")) bitcoin_price = doc["bitcoin"]["usd"];
if (doc.containsKey("bitcoin")) bitcoin_price = doc["last_trade_price"];

doc.clear();

Expand Down Expand Up @@ -341,4 +341,4 @@ pool_data getPoolData(void){
}
}
return pData;
}
}

0 comments on commit 81e933a

Please sign in to comment.