hackrf_operacake: clarify output of list command
Now that addresses are in the range 0-7, this would previously output "Operacakes found: 0" for the default board address. This is confusing as it looks like it found no Opera Cakes.
This commit is contained in:
@ -265,10 +265,10 @@ int main(int argc, char** argv) {
|
|||||||
hackrf_error_name(result), result);
|
hackrf_error_name(result), result);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
printf("Operacakes found: ");
|
printf("Opera Cakes found: ");
|
||||||
for(i=0; i<8; i++) {
|
for(i=0; i<8; i++) {
|
||||||
if(operacakes[i] != HACKRF_OPERACAKE_ADDRESS_INVALID) {
|
if(operacakes[i] != HACKRF_OPERACAKE_ADDRESS_INVALID) {
|
||||||
printf("\n%d", operacakes[i]);
|
printf("\n\tAddress: %d", operacakes[i]);
|
||||||
operacake_count++;
|
operacake_count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user