Skip to content

Commit

Permalink
Merge pull request #270 from pothosware/master
Browse files Browse the repository at this point in the history
hackrf_transfer - cast with uint32_t
  • Loading branch information
dominicgs committed Jul 21, 2016
2 parents ab58c3c + cccde1b commit 1511268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/hackrf-tools/src/hackrf_transfer.c
Expand Up @@ -829,7 +829,7 @@ int main(int argc, char** argv) {
// Change the freq and sample rate to correct the crystal clock error.
if( crystal_correct ) {

sample_rate_hz = (uint)((double)sample_rate_hz * (1000000 - crystal_correct_ppm)/1000000+0.5);
sample_rate_hz = (uint32_t)((double)sample_rate_hz * (1000000 - crystal_correct_ppm)/1000000+0.5);
freq_hz = freq_hz * (1000000 - crystal_correct_ppm)/1000000;

}
Expand Down

0 comments on commit 1511268

Please sign in to comment.