formatting and update for plug-in card

This commit is contained in:
dschmenk 2013-06-16 21:23:38 -07:00
parent 91f7c94d58
commit ecd31a7118
4 changed files with 124 additions and 121 deletions

Binary file not shown.

View File

@ -714,7 +714,7 @@ void main(int argc, char **argv)
}
else
{
printf("a2pi: Bad Sync ACK [0x%02X]\n", iopkt[0]);
prlog("a2pi: Bad Sync ACK\n");
stop = TRUE;
}
}
@ -740,7 +740,7 @@ void main(int argc, char **argv)
{
if (read(a2fd, iopkt, 3) == 3)
{
// printf("a2pi: Event [0x%02X] [0x%02X] [0x%02X]\n", iopkt[0], iopkt[1], iopkt[2]);
printf("a2pi: Event [0x%02X] [0x%02X] [0x%02X]\n", iopkt[0], iopkt[1], iopkt[2]);
switch (iopkt[0])
{
case 0x80: /* sync */

View File

@ -41,6 +41,7 @@ int main(int argc, char **argv)
perror("Unable to connect to Apple II Pi");
exit(EXIT_FAILURE);
}
sleep(1);
a2write(pifd, ORG, sizeof(online), online);
a2call(pifd, ORG, &result);
a2read(pifd, DATA_BUFFER, 16, volname);

View File

@ -46,6 +46,8 @@ int main(int argc, char **argv)
perror("Usage: dskwrite <filename> [ip address]\n");
exit(EXIT_FAILURE);
}
sleep(1);
fflush(stdin);
a2write(pifd, ORG, sizeof(online), online);
a2call(pifd, ORG, &result);
if (result == 0)