From 59416586f7c6003cb6d4c4a1ac9689e993671f09 Mon Sep 17 00:00:00 2001 From: Tom Fifield Date: Wed, 8 May 2024 11:57:12 +0800 Subject: [PATCH] Set voltageChart min y-value to 2V As mentioned in liamcottle/meshtastic-map#13 , voltages on meshtastic devices are typically 3.2-4.2V . The range on the voltageChart y-axis from 0V to 5V reduced its usefulness as changes within the normal operating range of devices were more difficult to detect. This patch changes the y-axis range to 2V to 5V. This will improve the resolution for the areas users care about. Note that this change is more conservative than requested in liamcottle/meshtastic-map#13 , as it attempts to take into account less typical voltage. A very drained battery might get around 2V, and 5V might be reported for a USB connection. --- src/public/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/index.html b/src/public/index.html index 5ea606b..c396330 100644 --- a/src/public/index.html +++ b/src/public/index.html @@ -1755,7 +1755,7 @@ }, y: { display: false, // Hide y-axis labels - min: 0, + min: 2, max: 5, }, },