kopia lustrzana https://github.com/Hamlib/Hamlib
correct rit
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1327 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.4
rodzic
0ab09c0b01
commit
d57c7fae08
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kenwood backend - main file
|
||||
* Copyright (c) 2000-2002 by Stephane Fillod
|
||||
*
|
||||
* $Id: kenwood.c,v 1.53 2002-12-20 10:39:41 pa4tu Exp $
|
||||
* $Id: kenwood.c,v 1.54 2002-12-21 12:35:09 pa4tu Exp $
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library General Public License as
|
||||
|
@ -461,6 +461,7 @@ int kenwood_get_rit(RIG *rig, vfo_t vfo, shortfreq_t * rit)
|
|||
unsigned char infobuf[50];
|
||||
int info_len, retval;
|
||||
|
||||
info_len = 50;
|
||||
retval = kenwood_transaction (rig, "IF;", 3, infobuf, &info_len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
@ -472,7 +473,7 @@ int kenwood_get_rit(RIG *rig, vfo_t vfo, shortfreq_t * rit)
|
|||
}
|
||||
|
||||
infobuf[23] = '\0';
|
||||
*rit = atoi(&infobuf[17]);
|
||||
*rit = atoi(&infobuf[18]);
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue