From 4360ab1cee2892ed7547d6bbb3afa7851d837c4c Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 25 Oct 1989 11:36:51 +0000 Subject: [PATCH] improved error handling: C_busy now returns 0 if C_failed is called --- modules/src/em_code/em.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/src/em_code/em.c b/modules/src/em_code/em.c index f5f24421a..d5db2de4c 100644 --- a/modules/src/em_code/em.c +++ b/modules/src/em_code/em.c @@ -71,6 +71,7 @@ C_flush() { } #endif if (C_opp != obuf && sys_write(C_ofp, obuf, C_opp - obuf) == 0) { + C_ofp = 0; C_failed(); } C_opp = obuf;