From 10d1046e804d1f25e69e450a0cc1c759c4752230 Mon Sep 17 00:00:00 2001 From: Nonoo Date: Tue, 3 Nov 2020 16:56:29 +0100 Subject: [PATCH] Shorten status line --- README.md | 9 ++++++--- statuslog.go | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b164053..774d022 100644 --- a/README.md +++ b/README.md @@ -86,10 +86,13 @@ is up) with the following info: - First status bar line: - `state`: RX/TX/TUNE depending on the PTT status - - `freq`: operating frequency in MHz, mode (LSB/USB/FM...), active filter, - preamp (PAMP0 means the preamp is off), Vd voltage + - `freq`: operating frequency in MHz + - `mode`: LSB/USB/FM etc. + - `filter`: active filter (FIL1, FIL2 etc.) + - `preamp`: PAMP0 means the preamp is off + - `voltage`: Vd voltage - `txpwr`: current transmit power setting in percent - - `audiomon`: current status of the audio monitor (see the *Hotkeys* section + - `audio`: current status of the audio monitor (see the *Hotkeys* section in this README for more information about this feature) - Second status bar line: diff --git a/statuslog.go b/statuslog.go index 4ff52ce..adefbc2 100644 --- a/statuslog.go +++ b/statuslog.go @@ -233,7 +233,7 @@ func (s *statusLogStruct) update() { if s.data.txPowerStr != "" { txPowerStr = " txpwr " + s.data.txPowerStr } - s.data.line1 = fmt.Sprint("state ", s.data.stateStr, " freq: ", fmt.Sprintf("%.6f", float64(s.data.frequency)/1000000), + s.data.line1 = fmt.Sprint(s.data.stateStr, " ", fmt.Sprintf("%.6f", float64(s.data.frequency)/1000000), modeStr, filterStr, preampStr, vdStr, txPowerStr, " audio ", s.data.audioStateStr) up, down, lost, retransmits := netstat.get()