fix get_channel answer freq parsing

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1863 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.3
Thierry Leconte, F4DWV 2004-11-04 22:49:10 +00:00
rodzic 3e43344263
commit 2c9aa4713e
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - TH handheld primitives * Hamlib Kenwood backend - TH handheld primitives
* Copyright (c) 2001-2003 by Stephane Fillod * Copyright (c) 2001-2003 by Stephane Fillod
* *
* $Id: th.c,v 1.20 2004-03-21 18:25:54 f4dwv Exp $ * $Id: th.c,v 1.21 2004-11-04 22:49:10 f4dwv Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -1098,7 +1098,7 @@ int th_get_channel(RIG *rig, channel_t *chan)
{ {
char membuf[64],ackbuf[ACKBUF_LEN]; char membuf[64],ackbuf[ACKBUF_LEN];
int retval,ack_len; int retval,ack_len;
long long freq,offset; freq_t freq,offset;
char req[16],scf[128]; char req[16],scf[128];
int step, shift, rev, tone, ctcss, tonefq, ctcssfq; int step, shift, rev, tone, ctcss, tonefq, ctcssfq;
@ -1140,7 +1140,7 @@ int th_get_channel(RIG *rig, channel_t *chan)
&freq, &step, &shift, &rev, &tone, &freq, &step, &shift, &rev, &tone,
&ctcss, &tonefq, &ctcssfq, &offset); &ctcss, &tonefq, &ctcssfq, &offset);
chan->freq=(freq_t)freq; chan->freq=freq;
chan->vfo=RIG_VFO_MEM; chan->vfo=RIG_VFO_MEM;
chan->tuning_step=rig->state.tuning_steps[step].ts; chan->tuning_step=rig->state.tuning_steps[step].ts;
if(freq <MHz(136) ) { if(freq <MHz(136) ) {