Closed larsks closed 9 months ago
If we do strings.TrimPrefix(resp, "CHKVFO") == "1" instead, it will work in both cases. Do you mind updating the PR?
Sounds good. I'm happy to update the PR.
We should probably trace down the change in hamlib and check if this is a bug or an intended API change. Maybe they've done similar changes we should take into account as well.
It looks like it changed in https://github.com/Hamlib/Hamlib/commit/44a20c6a1e66b8f73fbc7e200f547702e32f9559, without explanation, in Sept 2019.
Previous, VFOMode() was expecting the response
CHKVFO 1
fromrigctld
when running in VFO mode, but in factrigctld
responds with the string1
:Closes la5nta/pat#427