Skip to content

Commit

Permalink
fixing precision for total yield in tft/ OLED display
Browse files Browse the repository at this point in the history
  • Loading branch information
ohAnd committed Oct 11, 2024
1 parent 9cf8021 commit bb75482
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"files.associations": {
"ranges": "cpp",
"string": "cpp",
"map": "cpp"
"map": "cpp",
"cmath": "cpp"
}
}
6 changes: 3 additions & 3 deletions include/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define VERSION "2.0.173_localDev"
#define BUILDTIME "10.10.2024 - 21:00:37"
#define BUILDTIMESTAMP "1728586837"
#define VERSION "2.0.178_localDev"
#define BUILDTIME "11.10.2024 - 18:54:35"
#define BUILDTIMESTAMP "1728665675"
8 changes: 4 additions & 4 deletions include/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "2.0.173_localDev",
"versiondate": "10.10.2024 - 21:00:37",
"linksnapshot": "https://github.com/ohAnd/dtuGateway/releases/download/snapshot/dtuGateway_snapshot_2.0.173_localDev.bin",
"link": "https://github.com/ohAnd/dtuGateway/releases/latest/download/dtuGateway_release_2.0.173_localDev.bin"
"version": "2.0.178_localDev",
"versiondate": "11.10.2024 - 18:54:35",
"linksnapshot": "https://github.com/ohAnd/dtuGateway/releases/download/snapshot/dtuGateway_snapshot_2.0.178_localDev.bin",
"link": "https://github.com/ohAnd/dtuGateway/releases/latest/download/dtuGateway_release_2.0.178_localDev.bin"
}
2 changes: 1 addition & 1 deletion src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void Display::drawScreen()
{
// store last shown value
lastDisplayData.totalYieldDay = dtuGlobalData.grid.dailyEnergy;
lastDisplayData.totalYieldTotal = round(dtuGlobalData.grid.totalEnergy);
lastDisplayData.totalYieldTotal = dtuGlobalData.grid.totalEnergy;
lastDisplayData.rssiGW = dtuGlobalData.wifi_rssi_gateway;
lastDisplayData.rssiDTU = dtuGlobalData.dtuRssi;
lastDisplayData.totalPower = round(dtuGlobalData.grid.power);
Expand Down
2 changes: 1 addition & 1 deletion src/displayTFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void DisplayTFT::drawScreen(String version, String time)
{
// store last shown value
lastDisplayData.totalYieldDay = dtuGlobalData.grid.dailyEnergy;
lastDisplayData.totalYieldTotal = round(dtuGlobalData.grid.totalEnergy);
lastDisplayData.totalYieldTotal = dtuGlobalData.grid.totalEnergy;
lastDisplayData.rssiGW = dtuGlobalData.wifi_rssi_gateway;
lastDisplayData.rssiDTU = dtuGlobalData.dtuRssi;
lastDisplayData.totalPower = round(dtuGlobalData.grid.power);
Expand Down

0 comments on commit bb75482

Please sign in to comment.