don't save repeter offset if it's 0

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1891 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.4
Thierry Leconte, F4DWV 2004-12-22 16:03:19 +00:00
rodzic a4a78f676c
commit 2a51091c47
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* memsave.c - Copyright (C) 2003-2004 Thierry Leconte
*
*
* $Id: memsave.c,v 1.5 2004-05-17 21:09:45 fillods Exp $
* $Id: memsave.c,v 1.6 2004-12-22 16:03:19 f4dwv Exp $
*
*
* This program is free software; you can redistribute it and/or
@ -178,7 +178,7 @@ int dump_xml_chan(RIG *rig, xmlNodePtr root, int i, int chan_num)
xmlNewProp(node, "rptr_shift", "-");
break;
}
if (rig->state.chan_list[i].mem_caps.rptr_offs) {
if (rig->state.chan_list[i].mem_caps.rptr_offs && (int)chan.rptr_offs!=0) {
sprintf(attrbuf,"%d",(int)chan.rptr_offs);
xmlNewProp(node, "rptr_offs", attrbuf);
}