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

Method upper

src/ELMduino.cpp:338–348  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

336 * void
337*/
338void 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()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected