mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-11 18:03:08 +01:00
Merge pull request #607 from dominicgs/portapack_ui_opera_cake_coexistence
Allow portapack and opera cake to coexist and still enable the PP UI
This commit is contained in:
@@ -39,6 +39,8 @@ typedef int bool;
|
||||
#define INVALID_ADDRESS 0xFF
|
||||
#define INVALID_PORT 0xFF
|
||||
|
||||
#define GPIO_TEST_DISABLED 0xFFFF
|
||||
|
||||
static void usage() {
|
||||
printf("\nUsage:\n");
|
||||
printf("\t-h, --help: this help\n");
|
||||
@@ -285,7 +287,10 @@ int main(int argc, char** argv) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if(test_result) {
|
||||
if(test_result == GPIO_TEST_DISABLED) {
|
||||
fprintf(stderr, "GPIO mode diabled.\n");
|
||||
fprintf(stderr, "Remove additional addon boards and retry.\n");
|
||||
}else if(test_result) {
|
||||
fprintf(stderr, "GPIO test failed\n");
|
||||
fprintf(stderr, "Pin\tHigh\tShorts\tLow\n");
|
||||
reg = test_result & mask;
|
||||
|
||||
Reference in New Issue
Block a user