/
| 191 | |
| 192 | /*****************************************************************************/ |
| 193 | int comWrite(int index, const char * buffer, size_t len) |
| 194 | { |
| 195 | if (index >= noDevices || index < 0) |
| 196 | return 0; |
| 197 | if (comDevices[index].handle <= 0) |
| 198 | return 0; |
| 199 | int res = write(comDevices[index].handle, buffer, len); |
| 200 | if (res < 0) |
| 201 | res = 0; |
| 202 | return res; |
| 203 | } |
| 204 | |
| 205 | int comRead(int index, char * buffer, size_t len) |
| 206 | { |
nothing calls this directly
no outgoing calls
no test coverage detected