kopia lustrzana https://github.com/Hamlib/Hamlib
- Cast/change unsigned char to char in order to fix compile warnings.
- Incremented backend version number. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2125 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.6rc1
rodzic
3a9855708c
commit
2c6605b41b
12
jrc/jrc.c
12
jrc/jrc.c
|
@ -2,7 +2,7 @@
|
|||
* Hamlib JRC backend - main file
|
||||
* Copyright (c) 2001-2005 by Stephane Fillod
|
||||
*
|
||||
* $Id: jrc.c,v 1.28 2005-05-04 20:57:52 fineware Exp $
|
||||
* $Id: jrc.c,v 1.29 2006-10-07 17:51:00 csete 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
|
||||
|
@ -303,9 +303,9 @@ int jrc_set_vfo(RIG *rig, vfo_t vfo)
|
|||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
cmd_len = sprintf(cmdbuf, "%c" EOM, vfo_function);
|
||||
cmd_len = sprintf((char *) cmdbuf, "%c" EOM, vfo_function);
|
||||
|
||||
retval = jrc_transaction (rig, cmdbuf, cmd_len, NULL, NULL);
|
||||
retval = jrc_transaction (rig, (char *) cmdbuf, cmd_len, NULL, NULL);
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
@ -1018,7 +1018,7 @@ int jrc_get_dcd(RIG *rig, vfo_t vfo, dcd_t *dcd)
|
|||
*/
|
||||
int jrc_set_trn(RIG *rig, int trn)
|
||||
{
|
||||
unsigned char *trncmd;
|
||||
char *trncmd;
|
||||
|
||||
/* transceive(continuous) mode not available in remote mode
|
||||
* so switch back and forth upon entering/leaving
|
||||
|
@ -1034,7 +1034,7 @@ int jrc_set_trn(RIG *rig, int trn)
|
|||
*/
|
||||
int jrc_set_powerstat(RIG *rig, powerstat_t status)
|
||||
{
|
||||
unsigned char pwrbuf[BUFSZ];
|
||||
char pwrbuf[BUFSZ];
|
||||
int pwr_len;
|
||||
|
||||
pwr_len = sprintf(pwrbuf, "T%d" EOM, status==RIG_POWER_ON?1:0);
|
||||
|
@ -1081,7 +1081,7 @@ int jrc_get_powerstat(RIG *rig, powerstat_t *status)
|
|||
*/
|
||||
int jrc_reset(RIG *rig, reset_t reset)
|
||||
{
|
||||
unsigned char rstbuf[BUFSZ];
|
||||
char rstbuf[BUFSZ];
|
||||
int rst_len;
|
||||
char rst;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Hamlib JRC backend - main header
|
||||
* Copyright (c) 2001-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: jrc.h,v 1.12 2005-04-10 21:57:13 fillods Exp $
|
||||
* $Id: jrc.h,v 1.13 2006-10-07 17:51:00 csete 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
|
||||
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <hamlib/rig.h>
|
||||
|
||||
#define BACKEND_VER "0.5"
|
||||
#define BACKEND_VER "0.6"
|
||||
|
||||
struct jrc_priv_caps {
|
||||
int max_freq_len;
|
||||
|
|
Ładowanie…
Reference in New Issue