Exit pgusinit when card not detected instead of carrying on

This commit is contained in:
Ian Scott committed 2025-03-16 15:53:08 -06:00
1 parent 621d649e23
commit 897dd3ca61
1 file changed
+1 -1
+1 -1
View File
@@ -455,7 +455,7 @@ int main(int argc, char* argv[]) {
outp(CONTROL_PORT, MODE_MAGIC); // Select magic string register
if (inp(DATA_PORT_HIGH) != 0xDD) {
err_pigus();
//return 99;
return 99;
};
printf("PicoGUS detected: ");
print_firmware_string();