From aedf39adc2c30a95a944e130b5d7398a77aab7d4 Mon Sep 17 00:00:00 2001 From: PianetaRadio <78976006+PianetaRadio@users.noreply.github.com> Date: Fri, 4 Nov 2022 11:32:39 +0100 Subject: [PATCH] Update netrotctl.c Add south_zero from dump_state in open function --- rigs/dummy/netrotctl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rigs/dummy/netrotctl.c b/rigs/dummy/netrotctl.c index 38b645543..16b6c22e6 100644 --- a/rigs/dummy/netrotctl.c +++ b/rigs/dummy/netrotctl.c @@ -144,6 +144,16 @@ static int netrotctl_open(ROT *rot) } rs->max_el = rot->caps->max_el = atof(buf); + + ret = read_string(&rot->state.rotport, (unsigned char *) buf, BUF_MAX, "\n", + sizeof("\n"), 0, 1); + + if (ret <= 0) + { + return (ret < 0) ? ret : -RIG_EPROTO; + } + + rs->south_zero = atoi(buf); return RIG_OK; }