From a4675cccc847f921063dd20b6ca99bafe005025d Mon Sep 17 00:00:00 2001 From: Carsten Schmiemann Date: Sun, 20 Nov 2022 02:48:42 +0100 Subject: [PATCH] Extend auto scale to 24kW as per request --- src/display.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/display.cpp b/src/display.cpp index 792ac0c..c67e2e3 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -301,6 +301,13 @@ void display_screen_graph(float *values, char* key, int type, int buffersize) if (max > 14000) { graph_max_kW = 15000; } if (max > 15000) { graph_max_kW = 16000; } if (max > 16000) { graph_max_kW = 17000; } + if (max > 17000) { graph_max_kW = 18000; } + if (max > 18000) { graph_max_kW = 19000; } + if (max > 19000) { graph_max_kW = 20000; } + if (max > 20000) { graph_max_kW = 21000; } + if (max > 21000) { graph_max_kW = 22000; } + if (max > 22000) { graph_max_kW = 23000; } + if (max > 23000) { graph_max_kW = 24000; } if ((graph_max_kW/1000) < 10) {