improved error handling: C_busy now returns 0 if C_failed is called
This commit is contained in:
parent
e4309374be
commit
4360ab1cee
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue