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:
Mike Walters
2021-07-14 18:33:37 +01:00
parent 5e2e06b620
commit 6aa64a80d5

View File

@ -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++;
} }
} }