From 75d40f40c6c676d032fc8763befab84d8145786d Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Wed, 15 Feb 2023 14:09:51 +0100 Subject: [PATCH] adjusted speed chart snr --- gui/preload-main.js | 4 ++++ tnc/static.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/preload-main.js b/gui/preload-main.js index a3d9e677..8b3ef750 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -1693,6 +1693,10 @@ ipcRenderer.on("action-update-tnc-state", (event, arg) => { var speedDataSnr = []; for (var i = 0; i < speed_listSize; i++) { + let snr = NaN; + if(arg.speed_list[i].snr !== 0){ + snr = arg.speed_list[i].snr; + } speedDataSnr.push(arg.speed_list[i].snr); } diff --git a/tnc/static.py b/tnc/static.py index eb69f0c4..e7350e2d 100644 --- a/tnc/static.py +++ b/tnc/static.py @@ -11,7 +11,7 @@ Not nice, suggestions are appreciated :-) import subprocess from enum import Enum -VERSION = "0.7.3-alpha.2" +VERSION = "0.7.4-alpha.1-exp" ENABLE_EXPLORER = False ENABLE_STATS = False