BUGFIX for K3NG keyer in Alpha_139.

2 posts / 0 new
Last post
PB4PT
BUGFIX for K3NG keyer in Alpha_139.

It appears that my CW keyer (K3NG on /dev/ttyACM0 on a RPi5) wasn't working.

**** DEBUG LEVEL -8 ****

OS:
Linux version 6.12.47+rpt-rpi-2712 (serge@raspberrypi.com) (aarch64-linux-gnu-gc
/usr/local/bin/mysqld
Radio1 CW settings:
CW init keyer type:3
Device:
Last error nr: 9
Last error desc:Bad file number
18
CW keyer reloaded by TRControl radio1 change

Refreshing some of my very ancient PASCAL skills I found cause, and got it to work with this change:

diff --git a/src/fNewQSO.pas b/src/fNewQSO.pas
index 93dee4a..d68ebee 100644
--- a/src/fNewQSO.pas
+++ b/src/fNewQSO.pas
@@ -7634,8 +7634,8 @@ begin
CWint.DebugMode := ((abs(dmData.DebugLevel) and 8) = 8 )
else
CWint.DebugMode := dmData.DebugLevel>=1;
- CWint.Port := cqrini.ReadString('CW'+n,'K3NGPort'+n,'');
- CWint.Device := cqrini.ReadString('CW'+n,'K3NGPort'+n,'');
+ CWint.Port := cqrini.ReadString('CW'+n,'K3NGPort','');
+ CWint.Device := cqrini.ReadString('CW'+n,'K3NGPort','');
CWint.MinSpeed := cqrini.ReadInteger('CW'+n, 'K3NG_min', 5);
CWint.MaxSpeed := cqrini.ReadInteger('CW'+n, 'K3NG_max', 60);
CWint.PortSpeed := cqrini.ReadInteger('CW'+n,'K3NGSerSpeed',115200);

oh1kh
BUGFIX for K3NG keyer in Alpha_139.

Hi!
Thanks!

Yes, it seems that "+n" has appeared there by accident when rewriting things for multiple rigs.
I do not have K3NG keyer to test with.
Checked also preferences.pas and there is no indication that the rig number is needed in addition of K3NG port/device name.
Actually K3NG does not use specified port (serial device). Only device name would be enough but both are there because the init is same for all types of keyers.

Added fix to CqrlogAlpha devel branch (139).

--
Saku
OH1KH