[Hamlib-cvs-digest] CVS: hamlib/icom icom.c,1.11,1.12 frame.c,1.6,1.7
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@us...> - 2001-01-05 18:20:23
|
Update of /cvsroot/hamlib/hamlib/icom In directory usw-pr-cvs1:/tmp/cvs-serv1645 Modified Files: icom.c frame.c Log Message: * icom_set_mode fixup (passband not done right) Index: icom.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/icom/icom.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** icom.c 2000/12/05 22:01:02 1.11 --- icom.c 2001/01/05 18:20:27 1.12 *************** *** 359,363 **** struct icom_priv_data *priv; struct rig_state *rig_s; ! unsigned char ackbuf[16]; int ack_len,icmode; --- 359,363 ---- struct icom_priv_data *priv; struct rig_state *rig_s; ! unsigned char ackbuf[16],icmode_ext[1]; int ack_len,icmode; *************** *** 367,371 **** icmode = hamlib2icom_mode(mode,width); ! icom_transaction (rig, C_SET_MODE, icmode, NULL, 0, ackbuf, &ack_len); if (ack_len != 1 || ackbuf[0] != ACK) { --- 367,373 ---- icmode = hamlib2icom_mode(mode,width); ! icmode_ext[0] = (icmode>>8) & 0xff; ! icom_transaction (rig, C_SET_MODE, icmode & 0xff, icmode_ext, ! icmode_ext[0]?1:0, ackbuf, &ack_len); if (ack_len != 1 || ackbuf[0] != ACK) { Index: frame.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/icom/frame.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** frame.c 2000/12/04 23:39:17 1.6 --- frame.c 2001/01/05 18:20:27 1.7 *************** *** 212,216 **** case RIG_MODE_FM: icmode = width==RIG_PASSBAND_WIDE?S_WFM:S_FM; ! icmode_ext = width==RIG_PASSBAND_NARROW?0x01:0x00; break; default: --- 212,216 ---- case RIG_MODE_FM: icmode = width==RIG_PASSBAND_WIDE?S_WFM:S_FM; ! icmode_ext = width==RIG_PASSBAND_NARROW?0x02:0x00; break; default: |