mirror of
https://github.com/rcornwell/sims.git
synced 2026-02-07 16:51:53 +00:00
KA10: Make TEN11 more robust in the face of network errors.
This commit is contained in:
committed by
Richard Cornwell
parent
a8bae507b3
commit
ba534e8d1f
@@ -262,7 +262,11 @@ static int read_word (int addr, int *data)
|
||||
build (request, (addr >> 8) & 0377);
|
||||
build (request, (addr) & 0377);
|
||||
|
||||
transaction (request, response);
|
||||
if (transaction (request, response) == -1) {
|
||||
/* Network error. */
|
||||
*data = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
switch (response[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user