mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-12 16:36:38 +02:00
added round to 3 decimals for API JSON (reduced transmitted length)
This commit is contained in:
parent
6e39b779f4
commit
50bfbf8a38
2 changed files with 6 additions and 2 deletions
|
@ -41,6 +41,10 @@ class webApi {
|
|||
|
||||
Inverter<> *getInverter(DynamicJsonDocument jsonIn, JsonObject jsonOut);
|
||||
|
||||
double round3(double value) {
|
||||
return (int)(value * 1000 + 0.5) / 1000.0;
|
||||
}
|
||||
|
||||
AsyncWebServer *mSrv;
|
||||
app *mApp;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue