mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-01-20 15:40:40 +01:00
Fix string splitting
This commit is contained in:
parent
f36adcd080
commit
4b5e185da5
|
|
@ -57,7 +57,7 @@ func (s *rigctldStruct) sendReplyCode(code int) error {
|
|||
}
|
||||
|
||||
func (s *rigctldStruct) processCmd(cmd string) (close bool, err error) {
|
||||
cmdSplit := strings.Split(cmd, " ")
|
||||
cmdSplit := strings.Fields(cmd)
|
||||
|
||||
switch {
|
||||
case cmd == "\\chk_vfo":
|
||||
|
|
|
|||
Loading…
Reference in a new issue