mirror of
https://github.com/brmlab/kalibrate-rtl.git
synced 2025-08-02 14:13:36 +02:00
more human friendly output formating
Align channel numbers and power values to be easily readable.
This commit is contained in:
parent
aae11c8a8d
commit
3b7f6bc43f
1 changed files with 2 additions and 2 deletions
|
@ -157,9 +157,9 @@ int c0_detect(usrp_source *u, int bi) {
|
||||||
r = l->scan(b, b_len, &offset, 0);
|
r = l->scan(b, b_len, &offset, 0);
|
||||||
if(r && (fabsf(offset - GSM_RATE / 4) < ERROR_DETECT_OFFSET_MAX)) {
|
if(r && (fabsf(offset - GSM_RATE / 4) < ERROR_DETECT_OFFSET_MAX)) {
|
||||||
// found
|
// found
|
||||||
printf("\tchan: %d (%.1fMHz ", i, freq / 1e6);
|
printf("\tchan: %4d (%.1fMHz ", i, freq / 1e6);
|
||||||
display_freq(offset - GSM_RATE / 4);
|
display_freq(offset - GSM_RATE / 4);
|
||||||
printf(")\tpower: %6.2lf\n", power[i]);
|
printf(")\tpower: %10.2f\n", power[i]);
|
||||||
notfound_count = 0;
|
notfound_count = 0;
|
||||||
i = next_chan(i, bi);
|
i = next_chan(i, bi);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue