Re: [Hamlib-developer] [Hamlib/Hamlib] 1557ad: Fix rotorez set_conf in both rotctl and rotctld --..
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: George B. <geo...@gm...> - 2024-06-08 20:42:58
|
But that is EXACTLY what Hamlib is for - to present the same API for every piece of gear we support - no fiddling in the app to special-case quirks. To make one model require a different sequence defeats the whole purpose. Other gear uses set_conf() to prepare for various message to send in ..._open(). Let's see what rotorez.c can do. On 6/8/24 4:26 PM, Black Michael wrote: > That is a much more complicated solution. > > I generally agree with you but putting in some sort of delayed queue for just one rotor seemed like overkill. > > Better yet would be to modularize that section of code when I feel like it...then it's a much shorter solution. > > Mike W9MDB > > > > > > > > > On Saturday, June 8, 2024 at 01:37:18 PM CDT, George Baltz <geo...@gm...> wrote: > > > > > > This is a really bad way to attack the problem - it doesn't fix it for > the general application interface, as it changes the wrong side of the > API. Every other device Hamlib supports allows config changes between > 'my_<whatever> = <whatever>_init(model)' and > '<whatever>_open(my_<whatever>,...)'. So the error is not in rotctl or > rotctld, but in rotorez.c. It needs to be fixed to save the state of > any config changes and make sure they are in effect before the device is > declared usable, i.e., when rot_open() returns. > > On 6/7/24 5:08 PM, Michael Black via Hamlib-developer wrote: >> Branch: refs/heads/master >> Home: https://github.com/Hamlib/Hamlib >> Commit: 1557ad70f752f7217c1eff963af1a1f3c4f96026 >> https://github.com/Hamlib/Hamlib/commit/1557ad70f752f7217c1eff963af1a1f3c4f96026 >> Author: Mike Black W9MDB <mdb...@ya...> >> Date: 2024-06-07 (Fri, 07 Jun 2024) >> >> Changed paths: >> M tests/rotctl.c >> M tests/rotctld.c >> >> Log Message: >> ----------- >> Fix rotorez set_conf in both rotctl and rotctld -- since it needs to be done after rot_open >> >> >> >> To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications >> >> >> _______________________________________________ >> Hamlib-developer mailing list >> Ham...@li... >> https://lists.sourceforge.net/lists/listinfo/hamlib-developer > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer |