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:
Michael Ossmann
2020-01-06 16:28:58 -07:00
committed by GitHub
6 changed files with 28 additions and 51 deletions

View File

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