#define LINESDR
-int band=band20;
+static int current_band=band20;
int xvtr_band=BANDS;
char* outOfBand="Out of band";
}
BANDSTACK_ENTRY *bandstack_entry_get_current() {
- BANDSTACK *bandstack=bands[band].bandstack;
+ BANDSTACK *bandstack=bands[current_band].bandstack;
BANDSTACK_ENTRY *entry=&bandstack->entry[bandstack->current_entry];
return entry;
}
BANDSTACK_ENTRY *bandstack_entry_next() {
- BANDSTACK *bandstack=bands[band].bandstack;
+ BANDSTACK *bandstack=bands[current_band].bandstack;
bandstack->current_entry++;
if(bandstack->current_entry>=bandstack->entries) {
bandstack->current_entry=0;
}
BANDSTACK_ENTRY *bandstack_entry_previous() {
- BANDSTACK *bandstack=bands[band].bandstack;
+ BANDSTACK *bandstack=bands[current_band].bandstack;
bandstack->current_entry--;
if(bandstack->current_entry<0) {
bandstack->current_entry=bandstack->entries-1;
int band_get_current() {
- return band;
+ return current_band;
}
BAND *band_get_current_band() {
- BAND *b=&bands[band];
+ BAND *b=&bands[current_band];
return b;
}
}
BAND *band_set_current(int b) {
- band=b;
+ current_band=b;
return &bands[b];
}
}
}
- sprintf(value,"%d",band);
+ sprintf(value,"%d",current_band);
setProperty("band",value);
}
}
value=getProperty("band");
- if(value) band=atoi(value);
+ if(value) current_band=atoi(value);
}
int get_band_from_frequency(long long f) {