Skip to content

Commit

Permalink
Revert "hackrf_transfer: fix Windows uint32 conversion build warnings"
Browse files Browse the repository at this point in the history
This reverts commit a9bc8b7.
  • Loading branch information
dominicgs committed Mar 27, 2018
1 parent a9bc8b7 commit 3168bb5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions host/hackrf-tools/src/hackrf_transfer.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,12 @@ int main(int argc, char** argv) {
break;

case 's':
result = parse_u32(optarg, &sample_rate_hz);
f_hz = strtod(optarg, &endptr);
if (optarg == endptr) {
result = HACKRF_ERROR_INVALID_PARAM;
break;
}
sample_rate_hz = f_hz;
sample_rate = true;
break;

Expand All @@ -652,7 +657,12 @@ int main(int argc, char** argv) {
break;

case 'b':
result = parse_u32(optarg, &baseband_filter_bw_hz);
f_hz = strtod(optarg, &endptr);
if (optarg == endptr) {
result = HACKRF_ERROR_INVALID_PARAM;
break;
}
baseband_filter_bw_hz = f_hz;
baseband_filter_bw = true;
break;

Expand Down

0 comments on commit 3168bb5

Please sign in to comment.