Skip to content

Commit

Permalink
escape station name in -headless mode
Browse files Browse the repository at this point in the history
this allows creating a station with a space in its name.
  • Loading branch information
arodland committed Aug 17, 2024
1 parent 3f499c3 commit 73e4498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func createClient() {
ClientID = "0x" + fc.ClientID()

fc.SendAndWait("client program Hamlib-Flex")
fc.SendAndWait("client station " + cfg.Station)
fc.SendAndWait("client station " + strings.ReplaceAll(cfg.Station, " ", "\x7f"))

log.Info().Str("handle", ClientID).Msg("Got client handle")

Expand Down

0 comments on commit 73e4498

Please sign in to comment.