Skip to content

Commit

Permalink
Last minute improvements to modem layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
GideonZ committed Mar 29, 2020
1 parent 4944b9e commit c8a3371
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions software/io/acia/modem.cc
Expand Up @@ -175,6 +175,8 @@ void Modem :: RunRelay(int socket)
BaseType_t cmdAvailable = xQueueReceive(commandQueue, &modemCommand, 0);
if (cmdAvailable) {
ExecuteCommand(&modemCommand);
escape = registerValues[MODEM_REG_ESCAPE];
escapeTime = 4 * (int)registerValues[MODEM_REG_ESCAPETIME]; // Ultimate Timer is 200 Hz, hence *4, register specifies fiftieths of seconds
}
}
commandMode = true;
Expand Down Expand Up @@ -423,6 +425,9 @@ bool Modem :: ExecuteCommand(ModemCommand_t *cmd)
i = cmd->length; // break outer loop
response = "";
break;
case 'I': // identify
response = "ULTIMATE-II MODEM EMULATION LAYER\rMADE BY GIDEON\rVERSION V1.0\r";
break;
case 'Z': // reset
ResetRegisters();
keepConnection = false;
Expand Down

0 comments on commit c8a3371

Please sign in to comment.