Auto selection of card based on detection

This commit is contained in:
David Kuder 2023-05-02 19:54:27 -04:00
parent 0432d5eba1
commit 896c3a046c
1 changed files with 7 additions and 0 deletions

View File

@ -335,6 +335,13 @@ int prompt_slot(char *progname) {
int c;
int done=0;
// Attempt to find the lowest numbered V2 Analog Card
for(c = 7; c > 0; c--) {
if(!memcmp("V2A", (uint8_t *)(0xC0F8 + (c << 8)), 3)) {
cardslot = c;
}
}
backdrop(progname);
window(" Slot Number? ", 38, 7, 1);