| 203 | } |
| 204 | |
| 205 | int comRead(int index, char * buffer, size_t len) |
| 206 | { |
| 207 | if (index >= noDevices || index < 0) |
| 208 | return 0; |
| 209 | if (comDevices[index].handle <= 0) |
| 210 | return 0; |
| 211 | int res = read(comDevices[index].handle, buffer, len); |
| 212 | if (res < 0) |
| 213 | res = 0; |
| 214 | return res; |
| 215 | } |
| 216 | |
| 217 | /*****************************************************************************/ |
| 218 | int _BaudFlag(int BaudRate) |
nothing calls this directly
no outgoing calls
no test coverage detected