[Hamlib-developer] [Hamlib/Hamlib] 8324c8: Implement the Python callback for freq_event
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: dforsi <no...@gi...> - 2025-08-09 23:43:11
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 8324c85487c416025f6907a920f3528e36c07b8e https://github.com/Hamlib/Hamlib/commit/8324c85487c416025f6907a920f3528e36c07b8e Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/ignore.swg M bindings/macros.swg M bindings/python/test_Hamlib_Rig_class.py M bindings/python/test_rig.py M bindings/rig.swg M rigs/dummy/dummy.c Log Message: ----------- Implement the Python callback for freq_event Fixes #481. Commit: 3bc1cc8744e973e314882f1c43a58478c1346e4c https://github.com/Hamlib/Hamlib/commit/3bc1cc8744e973e314882f1c43a58478c1346e4c Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/python/test_Hamlib_Rig_class.py M bindings/python/test_rig.py M bindings/rig.swg M rigs/dummy/dummy.c Log Message: ----------- Implement remaining event callbacks Implements: rig_set_dcd_callback(), rig_set_freq_callback(), rig_set_mode_callback(), rig_pltune_callback(), rig_set_ptt_callback(), rig_set_spectrum_callback(), rig_set_vfo_callback() Commit: 9e1c7b5ec1f33dea1cf5a263c2ec8e12f791ac06 https://github.com/Hamlib/Hamlib/commit/9e1c7b5ec1f33dea1cf5a263c2ec8e12f791ac06 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/ignore.swg M bindings/macros.swg M bindings/rig.swg Log Message: ----------- Allocate zereod memory for struct python_callbacks Otherwise Py_XDECREF() would randomly segfault trying to use uninitialized memory that by chance is not zeroed. Commit: 8e4bcbcede1c42a39b74371c5b337bac2c49ff16 https://github.com/Hamlib/Hamlib/commit/8e4bcbcede1c42a39b74371c5b337bac2c49ff16 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M include/hamlib/rig.h Log Message: ----------- Add another cross-reference in a Doxygen comment Commit: 2890da9d79fdcdd070fbc924cd326a5d35d0b53d https://github.com/Hamlib/Hamlib/commit/2890da9d79fdcdd070fbc924cd326a5d35d0b53d Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/python/test_rig.py Log Message: ----------- Split the tests It makes it easier in future to conditionally run some tests(eg. to not test PTT for receiver-only rigs), or to run tests in isolation (after renaming them). It makes it easier to look at failing tests because pytest prints the code of the failing test up to the failure including any function that called the failed test (in this case would print everything from def test_with_open() up to the line with the failed assert. Commit: e2214fd2f18f326c0325f2e7abb7c892d13885aa https://github.com/Hamlib/Hamlib/commit/e2214fd2f18f326c0325f2e7abb7c892d13885aa Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M rigs/dummy/dummy.c Log Message: ----------- Change .ptt_type to RIG_PTT_RIG for RIG_MODEL_DUMMY With the old value of RIG_PTT_NONE, dummy_get_ptt() and dummy_set_ptt() were never called because rig_get_ptt() and rig_set_ptt() do check .ptt_type and return -RIG_ENAVAIL in that case. Do not change .ptt_type for RIG_MODEL_DUMMY_NOVFO so that both cases can be tested if needed. Commit: 81cb260670471689d7a3543153bb5c56cc26b5ce https://github.com/Hamlib/Hamlib/commit/81cb260670471689d7a3543153bb5c56cc26b5ce Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/python/test_rig.py Log Message: ----------- Fix ptt_callback() Commit: 10303d58038e4b35c00d94c35c417ca7cc2fb73c https://github.com/Hamlib/Hamlib/commit/10303d58038e4b35c00d94c35c417ca7cc2fb73c Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-08-09 (Sat, 09 Aug 2025) Changed paths: M bindings/python/test_rig.py Log Message: ----------- Fix function signature of spectrum_callback() Compare: https://github.com/Hamlib/Hamlib/compare/2462ab0a135c...10303d58038e To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |