uint8_t ELM327::ctoi(uint8_t value) Description: ------------ * converts a decimal or hex char to an int Inputs: ------- * uint8_t value - char to be converted Return: ------- * uint8_t - int value of parameter "value" */
| 386 | * uint8_t - int value of parameter "value" |
| 387 | */ |
| 388 | uint8_t ELM327::ctoi(uint8_t value) |
| 389 | { |
| 390 | if (value >= 'A') |
| 391 | return value - 'A' + 10; |
| 392 | else |
| 393 | return value - '0'; |
| 394 | } |
| 395 | |
| 396 | /* |
| 397 | int8_t ELM327::nextIndex(char const *str, |
nothing calls this directly
no outgoing calls
no test coverage detected