libbladeRF: Windows build fix
Declarations are required to be at the start of a scope.
This commit is contained in:
parent
1fce2bffa1
commit
b55468f09a
1 changed files with 2 additions and 1 deletions
|
|
@ -1570,6 +1570,7 @@ int lms_set_frequency(struct bladerf *dev, bladerf_module mod, uint32_t freq)
|
|||
uint64_t vco_x;
|
||||
uint64_t temp;
|
||||
int status, dsm_status;
|
||||
uint8_t i = 0;
|
||||
|
||||
/* Clamp out of range values */
|
||||
if (lfreq < BLADERF_FREQUENCY_MIN) {
|
||||
|
|
@ -1581,7 +1582,7 @@ int lms_set_frequency(struct bladerf *dev, bladerf_module mod, uint32_t freq)
|
|||
}
|
||||
|
||||
/* Figure out freqsel */
|
||||
uint8_t i = 0;
|
||||
|
||||
while(i < 16) {
|
||||
if ((lfreq > bands[i].low) && (lfreq <= bands[i].high)) {
|
||||
freqsel = bands[i].value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue