- Cast/change unsigned char to char in order to fix compile warnings.

- Incremented backend version numbers.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2127 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.6rc1
Alexandru Csete OZ9AEC 2006-10-07 18:01:31 +00:00
rodzic 85d04df400
commit 663b2f1bf7
2 zmienionych plików z 12 dodań i 12 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Lowe backend - HF-235 description * Hamlib Lowe backend - HF-235 description
* Copyright (c) 2003 by Stephane Fillod * Copyright (c) 2003 by Stephane Fillod
* *
* $Id: hf235.c,v 1.3 2005-04-10 21:57:13 fillods Exp $ * $Id: hf235.c,v 1.4 2006-10-07 18:01:31 csete 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
@ -52,7 +52,7 @@ const struct rig_caps hf235_caps = {
.rig_model = RIG_MODEL_HF235, .rig_model = RIG_MODEL_HF235,
.model_name = "HF-235", .model_name = "HF-235",
.mfg_name = "Lowe", .mfg_name = "Lowe",
.version = "0.2", .version = "0.3",
.copyright = "LGPL", .copyright = "LGPL",
.status = RIG_STATUS_ALPHA, /* and only basic support */ .status = RIG_STATUS_ALPHA, /* and only basic support */
.rig_type = RIG_TYPE_RECEIVER, .rig_type = RIG_TYPE_RECEIVER,

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Lowe backend - main file * Hamlib Lowe backend - main file
* Copyright (c) 2003-2005 by Stephane Fillod * Copyright (c) 2003-2005 by Stephane Fillod
* *
* $Id: lowe.c,v 1.4 2005-04-10 21:47:13 fillods Exp $ * $Id: lowe.c,v 1.5 2006-10-07 18:01:31 csete 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
@ -90,7 +90,7 @@ int lowe_transaction(RIG *rig, const char *cmd, int cmd_len, char *data, int *da
*/ */
int lowe_set_freq(RIG *rig, vfo_t vfo, freq_t freq) int lowe_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{ {
unsigned char freqbuf[16], ackbuf[16]; char freqbuf[16], ackbuf[16];
int freq_len, ack_len, retval; int freq_len, ack_len, retval;
/* /*
@ -107,7 +107,7 @@ int lowe_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
*/ */
int lowe_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) int lowe_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
{ {
unsigned char freqbuf[16]; char freqbuf[16];
int freq_len, retval; int freq_len, retval;
float f_freq; float f_freq;
@ -131,8 +131,8 @@ int lowe_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
*/ */
int lowe_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) int lowe_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
{ {
unsigned char mdbuf[16], ackbuf[16]; char mdbuf[16], ackbuf[16];
unsigned char *mode_sel; char *mode_sel;
int mdbuf_len, ack_len, retval; int mdbuf_len, ack_len, retval;
switch (mode) { switch (mode) {
@ -162,7 +162,7 @@ int lowe_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
*/ */
int lowe_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) int lowe_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
{ {
unsigned char mdbuf[16]; char mdbuf[16];
int mdbuf_len, retval; int mdbuf_len, retval;
retval = lowe_transaction (rig, "MOD?" EOM, 5, mdbuf, &mdbuf_len); retval = lowe_transaction (rig, "MOD?" EOM, 5, mdbuf, &mdbuf_len);
@ -201,7 +201,7 @@ int lowe_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
*/ */
int lowe_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) int lowe_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
{ {
unsigned char lvlbuf[16]; char lvlbuf[16];
int lvl_len, retval; int lvl_len, retval;
if (level != RIG_LEVEL_STRENGTH) if (level != RIG_LEVEL_STRENGTH)
@ -228,7 +228,7 @@ int lowe_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
*/ */
int lowe_reset(RIG *rig, reset_t reset) int lowe_reset(RIG *rig, reset_t reset)
{ {
static unsigned char ackbuf[BUFSZ]; static char ackbuf[BUFSZ];
int retval, ack_len; int retval, ack_len;
retval = lowe_transaction(rig, "RES" EOM, 4, ackbuf, &ack_len); retval = lowe_transaction(rig, "RES" EOM, 4, ackbuf, &ack_len);
@ -243,7 +243,7 @@ int lowe_reset(RIG *rig, reset_t reset)
*/ */
const char *lowe_get_info(RIG *rig) const char *lowe_get_info(RIG *rig)
{ {
static unsigned char idbuf[BUFSZ]; static char idbuf[BUFSZ];
int retval, id_len; int retval, id_len;
/* hack: no idea what INF is for */ /* hack: no idea what INF is for */
@ -264,7 +264,7 @@ const char *lowe_get_info(RIG *rig)
*/ */
DECLARE_PROBERIG_BACKEND(lowe) DECLARE_PROBERIG_BACKEND(lowe)
{ {
static unsigned char idbuf[BUFSZ]; static char idbuf[BUFSZ];
int retval, id_len; int retval, id_len;
if (!port) if (!port)