Shorten status line

This commit is contained in:
Nonoo 2020-11-03 16:56:29 +01:00
parent 7b384decc9
commit 10d1046e80
2 changed files with 7 additions and 4 deletions

View file

@ -86,10 +86,13 @@ is up) with the following info:
- First status bar line: - First status bar line:
- `state`: RX/TX/TUNE depending on the PTT status - `state`: RX/TX/TUNE depending on the PTT status
- `freq`: operating frequency in MHz, mode (LSB/USB/FM...), active filter, - `freq`: operating frequency in MHz
preamp (PAMP0 means the preamp is off), Vd voltage - `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 - `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) in this README for more information about this feature)
- Second status bar line: - Second status bar line:

View file

@ -233,7 +233,7 @@ func (s *statusLogStruct) update() {
if s.data.txPowerStr != "" { if s.data.txPowerStr != "" {
txPowerStr = " txpwr " + 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) modeStr, filterStr, preampStr, vdStr, txPowerStr, " audio ", s.data.audioStateStr)
up, down, lost, retransmits := netstat.get() up, down, lost, retransmits := netstat.get()