mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-05 15:06:02 +01:00
Opera Cake: use 0-7 instead of I2C addresses & bump USB API version
This commit is contained in:
@@ -120,7 +120,7 @@ int main(void)
|
||||
}
|
||||
if(result == HACKRF_SUCCESS) {
|
||||
for(j=0; j<8; j++) {
|
||||
if(operacakes[j] == 0)
|
||||
if(operacakes[j] == HACKRF_OPERACAKE_ADDRESS_INVALID)
|
||||
break;
|
||||
printf("Operacake found, address: 0x%02x\n", operacakes[j]);
|
||||
}
|
||||
|
||||
@@ -267,7 +267,7 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
printf("Operacakes found: ");
|
||||
for(i=0; i<8; i++) {
|
||||
if(operacakes[i] !=0) {
|
||||
if(operacakes[i] != HACKRF_OPERACAKE_ADDRESS_INVALID) {
|
||||
printf("\n%d", operacakes[i]);
|
||||
operacake_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user