mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-21 06:13:43 +00:00
Add hotkey to set TX power to 100%
This commit is contained in:
parent
0fea7715f8
commit
4ba88e98f2
2 changed files with 7 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ Some basic CAT control hotkeys are also supported:
|
|||
- `+`: increases TX power
|
||||
- `-`: decreases TX power
|
||||
- `0` to `9`: set TX power in 10% steps
|
||||
- `)`: set TX power to 100%
|
||||
- `[`, `]`: decreases, increases frequency
|
||||
- `{`, `}`: decreases, increases tuning step
|
||||
- `;`, `'`: decreases, increases RF gain
|
||||
|
|
|
|||
|
|
@ -84,6 +84,12 @@ func handleHotkey(k byte) {
|
|||
log.Error("can't set power: ", err)
|
||||
}
|
||||
}
|
||||
case ')':
|
||||
if civControl != nil {
|
||||
if err := civControl.setPwr(100); err != nil {
|
||||
log.Error("can't set power: ", err)
|
||||
}
|
||||
}
|
||||
case '\'':
|
||||
if civControl != nil {
|
||||
if err := civControl.incRFGain(); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue