- 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-79ac388436b8
Hamlib-1.2.6rc1
Alexandru Csete OZ9AEC 2006-10-07 17:42:14 +00:00
rodzic eba1db1658
commit 3a9855708c
2 zmienionych plików z 10 dodań i 10 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kachina backend - 505DSP description * Hamlib Kachina backend - 505DSP description
* Copyright (c) 2001-2004 by Stephane Fillod * 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 * 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
@ -62,7 +62,7 @@ const struct rig_caps k505dsp_caps = {
.rig_model = RIG_MODEL_505DSP, .rig_model = RIG_MODEL_505DSP,
.model_name = "505DSP", .model_name = "505DSP",
.mfg_name = "Kachina", .mfg_name = "Kachina",
.version = "0.2", .version = "0.3",
.copyright = "LGPL", .copyright = "LGPL",
.status = RIG_STATUS_ALPHA, .status = RIG_STATUS_ALPHA,
.rig_type = RIG_TYPE_COMPUTER, .rig_type = RIG_TYPE_COMPUTER,

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kachina backend - main file * Hamlib Kachina backend - main file
* Copyright (c) 2001-2004 by Stephane Fillod * 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 * 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
@ -87,11 +87,11 @@ static int kachina_transaction(RIG *rig, unsigned char cmd1, unsigned char cmd2)
serial_flush(&rs->rigport); serial_flush(&rs->rigport);
retval = write_block(&rs->rigport, buf4, 4); retval = write_block(&rs->rigport, (char *) buf4, 4);
if (retval != RIG_OK) if (retval != RIG_OK)
return retval; return retval;
count = read_string(&rs->rigport, buf4, 1, "", 0); count = read_string(&rs->rigport, (char *) buf4, 1, "", 0);
if (count != 1) if (count != 1)
return count; 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); 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) if (retval != RIG_OK)
return retval; return retval;
count = read_string(&rs->rigport, buf, 1, "", 0); count = read_string(&rs->rigport, (char *) buf, 1, "", 0);
if (count != 1) if (count != 1)
return count; return count;
@ -160,12 +160,12 @@ int kachina_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
freq2dds(freq, PORT_A, freqbuf); freq2dds(freq, PORT_A, freqbuf);
/* receive frequency */ /* receive frequency */
retval = kachina_trans_n(rig, 'R', freqbuf, 4); retval = kachina_trans_n(rig, 'R', (char *) freqbuf, 4);
if (retval != RIG_OK) if (retval != RIG_OK)
return retval; return retval;
/* transmit frequency */ /* transmit frequency */
retval = kachina_trans_n(rig, 'T', freqbuf, 4); retval = kachina_trans_n(rig, 'T', (char *) freqbuf, 4);
if (retval != RIG_OK) if (retval != RIG_OK)
return retval; 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); 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) if (count < 1)
return count; return count;