kopia lustrzana https://github.com/Hamlib/Hamlib
- Cast unsigned char to char in order to avoid compiler warnings.
- Incremented backend version number. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2124 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.6rc1
rodzic
eba1db1658
commit
3a9855708c
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kachina backend - 505DSP description
|
||||
* Copyright (c) 2001-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: 505dsp.c,v 1.8 2004-11-15 18:51:35 fillods Exp $
|
||||
* $Id: 505dsp.c,v 1.9 2006-10-07 17:42:14 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
|
||||
|
@ -62,7 +62,7 @@ const struct rig_caps k505dsp_caps = {
|
|||
.rig_model = RIG_MODEL_505DSP,
|
||||
.model_name = "505DSP",
|
||||
.mfg_name = "Kachina",
|
||||
.version = "0.2",
|
||||
.version = "0.3",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_ALPHA,
|
||||
.rig_type = RIG_TYPE_COMPUTER,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kachina backend - main file
|
||||
* Copyright (c) 2001-2004 by Stephane Fillod
|
||||
*
|
||||
* $Id: kachina.c,v 1.7 2004-11-15 18:51:35 fillods Exp $
|
||||
* $Id: kachina.c,v 1.8 2006-10-07 17:42:14 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
|
||||
|
@ -87,11 +87,11 @@ static int kachina_transaction(RIG *rig, unsigned char cmd1, unsigned char cmd2)
|
|||
|
||||
serial_flush(&rs->rigport);
|
||||
|
||||
retval = write_block(&rs->rigport, buf4, 4);
|
||||
retval = write_block(&rs->rigport, (char *) buf4, 4);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
count = read_string(&rs->rigport, buf4, 1, "", 0);
|
||||
count = read_string(&rs->rigport, (char *) buf4, 1, "", 0);
|
||||
if (count != 1)
|
||||
return count;
|
||||
|
||||
|
@ -115,11 +115,11 @@ static int kachina_trans_n(RIG *rig, unsigned char cmd1, const char *data, int d
|
|||
|
||||
serial_flush(&rs->rigport);
|
||||
|
||||
retval = write_block(&rs->rigport, buf, cmd_len);
|
||||
retval = write_block(&rs->rigport, (char *) buf, cmd_len);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
count = read_string(&rs->rigport, buf, 1, "", 0);
|
||||
count = read_string(&rs->rigport, (char *) buf, 1, "", 0);
|
||||
if (count != 1)
|
||||
return count;
|
||||
|
||||
|
@ -160,12 +160,12 @@ int kachina_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
freq2dds(freq, PORT_A, freqbuf);
|
||||
|
||||
/* receive frequency */
|
||||
retval = kachina_trans_n(rig, 'R', freqbuf, 4);
|
||||
retval = kachina_trans_n(rig, 'R', (char *) freqbuf, 4);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
/* transmit frequency */
|
||||
retval = kachina_trans_n(rig, 'T', freqbuf, 4);
|
||||
retval = kachina_trans_n(rig, 'T', (char *) freqbuf, 4);
|
||||
if (retval != RIG_OK)
|
||||
return retval;
|
||||
|
||||
|
@ -241,7 +241,7 @@ int kachina_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||
|
||||
serial_flush(&rig->state.rigport);
|
||||
|
||||
count = read_string(&rig->state.rigport, buf, 31, rcv_signal_range, 128);
|
||||
count = read_string(&rig->state.rigport, (char *) buf, 31, rcv_signal_range, 128);
|
||||
if (count < 1)
|
||||
return count;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue