Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Regardless of how bizarre it is, I've seen this in real code in embedded applications before. It's a workaround of buggy serial port drivers (flow control or buffering is probably broken): You open the port, read/write a line, close it, and open it again...


Hah I came here to say pretty much the same thing! Recently ran into it and coding that workaround on a resource constrained system felt absolutely bonkers.


I already got 5 upvotes now. Looks like a real headache for many embedded developers ;-(




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: