Skip to content

Commit

Permalink
hackrf_transfer - cast with uint32_t
Browse files Browse the repository at this point in the history
The compiler (MSVC 2013) didnt have the uint typedef,
switched to using uint32_t which is the type of sample_rate_hz.
  • Loading branch information
guruofquality committed Jul 21, 2016
1 parent ab58c3c commit cccde1b
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 cccde1b

Please sign in to comment.