pc/serial_unix: (hosted) Abort on unexpected problems.
This commit is contained in:
parent
2d4d6aa65a
commit
c80f311cb4
|
@ -179,7 +179,7 @@ int platform_buffer_write(const uint8_t *data, int size)
|
|||
s = write(fd, data, size);
|
||||
if (s < 0) {
|
||||
DEBUG_WARN("Failed to write\n");
|
||||
return(-2);
|
||||
exit(-2);
|
||||
}
|
||||
|
||||
return size;
|
||||
|
|
Loading…
Reference in New Issue