hamlib 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hamlib",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Node.js wrapper for hamlib radio control library",
5
5
  "main": "index.js",
6
6
  "module": "lib/index.mjs",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/src/hamlib.cpp CHANGED
@@ -280,7 +280,7 @@ public:
280
280
  void Execute() override {
281
281
  CHECK_RIG_VALID();
282
282
 
283
- result_code_ = shim_rig_set_level_f(hamlib_instance_->my_rig, SHIM_RIG_VFO_CURR, level_type_, value_);
283
+ result_code_ = shim_rig_set_level_f(hamlib_instance_->my_rig, SHIM_RIG_VFO_NONE, level_type_, value_);
284
284
  if (result_code_ != SHIM_RIG_OK) {
285
285
  error_message_ = shim_rigerror(result_code_);
286
286
  }
@@ -313,7 +313,9 @@ public:
313
313
  void Execute() override {
314
314
  CHECK_RIG_VALID();
315
315
 
316
- result_code_ = shim_rig_get_level_f(hamlib_instance_->my_rig, SHIM_RIG_VFO_CURR, level_type_, &value_);
316
+ // Use RIG_VFO_NONE to avoid unnecessary VFO switching that fails on
317
+ // ICOM rigs (e.g. IC-705) where icom_set_vfo returns "unsupported VFO"
318
+ result_code_ = shim_rig_get_level_f(hamlib_instance_->my_rig, SHIM_RIG_VFO_NONE, level_type_, &value_);
317
319
  if (result_code_ != SHIM_RIG_OK) {
318
320
  error_message_ = shim_rigerror(result_code_);
319
321
  }