Universal_HamRadio_Remote_HTML5 icon indicating copy to clipboard operation
Universal_HamRadio_Remote_HTML5 copied to clipboard

Fix mode switching by replacing rig_parse_mode with RIG_MODE_* mapping

Open N1RX opened this issue 5 months ago • 1 comments

Hi F4HTB,

while setting up a new Docker container, I ran into an issue where Hamlib.rig_parse_mode wasn't available in the Python bindings.

This small change replaces it with a direct mapping to Hamlib.RIG_MODE_* constants. It fixes the issue for me and should make the code more robust across different environments.

Tested and working with all modes.

73 de DL3NW

N1RX avatar Aug 02 '25 11:08 N1RX

Hello Dear,

Thanks for pushing some code. As you can see rig_parse_mode alwais exist: https://github.com/Hamlib/Hamlib/blob/master/include/hamlib/rig.h

I prefer not to downgrade this and use this function of hamlib. Can you tell me the version of hamlib used in your project?

73!

F4HTB avatar Aug 06 '25 20:08 F4HTB