void ELM327::upper(char string[], uint8_t buflen) Description: ------------ * Converts all elements of char array string[] to uppercase ascii Inputs: ------- * uint8_t string[] - Char array * uint8_t buflen - Length of char array Return: ------- * void */
| 336 | * void |
| 337 | */ |
| 338 | void ELM327::upper(char string[], |
| 339 | uint8_t buflen) |
| 340 | { |
| 341 | for (uint8_t i = 0; i < buflen; i++) |
| 342 | { |
| 343 | if (string[i] > 'Z') |
| 344 | string[i] -= 32; |
| 345 | else if ((string[i] > '9') && (string[i] < 'A')) |
| 346 | string[i] += 7; |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | /* |
| 351 | bool ELM327::timeout() |
nothing calls this directly
no outgoing calls
no test coverage detected