Fix string splitting

This commit is contained in:
Nonoo 2020-11-09 10:13:57 +01:00
parent f36adcd080
commit 4b5e185da5

View file

@ -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":