1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-16 08:23:21 +00:00

B5500: Fixed for new sim_card interface.

This commit is contained in:
Richard Cornwell 2018-05-21 14:54:59 -04:00
parent c9f123463f
commit db232ee122

View File

@ -450,13 +450,12 @@ cdr_attach(UNIT * uptr, CONST char *file)
if ((r = sim_card_attach(uptr, file)) != SCPE_OK)
return r;
if (uptr->up7 == 0) {
if (uptr->up7 == 0)
uptr->up7 = malloc(sizeof(uint16)*80);
uptr->u5 &= URCSTA_BUSY;
uptr->u4 = 0;
uptr->u6 = 0;
iostatus |= (CARD1_FLAG << u);
}
uptr->u5 &= URCSTA_BUSY;
uptr->u4 = 0;
uptr->u6 = 0;
iostatus |= (CARD1_FLAG << u);
return SCPE_OK;
}