MCPcopy Create free account
hub / github.com/PowerBroker2/ELMduino / ctoi

Method ctoi

src/ELMduino.cpp:388–394  ·  view source on GitHub ↗

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" */

Source from the content-addressed store, hash-verified

386 * uint8_t - int value of parameter "value"
387*/
388uint8_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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected