Opera Cake: use 0-7 instead of I2C addresses & bump USB API version

This commit is contained in:
Mike Walters
2021-07-13 16:37:22 +01:00
parent 21c99a36a6
commit 0293cf23db
6 changed files with 31 additions and 11 deletions

View File

@@ -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]);
}

View File

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