Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions c/drivewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ int main(int argc, char **argv)
strcpy(dskfile[1], "disk1");
strcpy(dskfile[2], "disk2");
strcpy(dskfile[3], "disk3");
setBaud(&datapack, 3); // assume CoCo 3
setBaud(&datapack, B115200); // assume CoCo 3
// change EOLs and send to printer
strcpy(datapack.prtcmd, "| tr \"\\r\" \"\\n\" | lpr");
// change EOLs and move to file
Expand Down Expand Up @@ -341,23 +341,24 @@ int main(int argc, char **argv)
break;

case 'b':
if (datapack.baudRate == B115200)
if (datapack.baudRate == B230400)
{
setBaud(&datapack, B230400);
setBaud(&datapack, B38400);
}
else
if (datapack.baudRate == B230400)
if (datapack.baudRate == B115200)
{
setBaud(&datapack, B57600);
setBaud(&datapack, B230400);
}
else
if (datapack.baudRate == B57600)
{
setBaud(&datapack, B115200);
}
else
if (datapack.baudRate == B38400)
{
setBaud(&datapack, 230400);
setBaud(&datapack, B57600);
}
comRaw(&datapack);
WinUpdate(window0, &datapack);
Expand Down
6 changes: 5 additions & 1 deletion c/dwwin.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,12 @@ void WinUpdate(WINDOW *window, struct dwTransferData *dp)
wprintw(window, "%s", "57600 baud");
break;

case B38400:
wprintw(window, "%s", "38400 baud");
break;

default:
wprintw(window, "%s", "Undefined");
wprintw(window, "%s: %d", "Undefined", dp->baudRate);
break;
}
wmove(window, y++, x); wclrtoeol(window);
Expand Down