git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1327 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.4
Joop Stakenborg, PG4I 2002-12-21 12:35:09 +00:00
rodzic 0ab09c0b01
commit d57c7fae08
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - main file * Hamlib Kenwood backend - main file
* Copyright (c) 2000-2002 by Stephane Fillod * 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 * 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
@ -461,6 +461,7 @@ int kenwood_get_rit(RIG *rig, vfo_t vfo, shortfreq_t * rit)
unsigned char infobuf[50]; unsigned char infobuf[50];
int info_len, retval; int info_len, retval;
info_len = 50;
retval = kenwood_transaction (rig, "IF;", 3, infobuf, &info_len); retval = kenwood_transaction (rig, "IF;", 3, infobuf, &info_len);
if (retval != RIG_OK) if (retval != RIG_OK)
return retval; return retval;
@ -472,7 +473,7 @@ int kenwood_get_rit(RIG *rig, vfo_t vfo, shortfreq_t * rit)
} }
infobuf[23] = '\0'; infobuf[23] = '\0';
*rit = atoi(&infobuf[17]); *rit = atoi(&infobuf[18]);
return RIG_OK; return RIG_OK;
} }