Closed philverh closed 5 years ago
Far from home (and the machine where I do this development) those weeks. It seems the changes are not accepted because removing blank lines does not change the actual code which results in a failre in the automated tests. (code already exists). Will look into this from the 15th of this month when I can access the dev. machine again.
I downloaded io.c and compiled and installed this change. Runs well for the last few hours. I will complain, if I see something strange.
@philverh Can you please change the else {
statement I commented above. After that I can merge your pull. Tx.
Done. (again, as I think I already accepted the change you suggested. Thanks @hmueller01 for spotting the mistake and suggesting the change)
Changed the else {
statement to write to ERR instead of INFO in case of an error.
Sorry, but io.c still has a
}
else {
instead of
} else {
on line 147/148. Please fix this. Thanks.
Done
As I said in issue #50
Return code from my_send is tested when the routine is called, and still there was a hardcoded "1" meaning success, returned by the function in all cases. I replaced it with either the number of bytes written to indicate a success, or "0" to indicate failure. In that case the number of bytes written versus the expected length is logged. I also removed the
readn
used to flush the IR input queue, with a call totcflush
to flush both input and output of the IR interface.