MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / prepareStoreBuffer

Function prepareStoreBuffer

RFM69_OTA.cpp:563–567  ·  view source on GitHub ↗

=================================================================================================================== prepareSendBuffer() - returns the final size of the buf ===================================================================================================================

Source from the content-addressed store, hash-verified

561// prepareSendBuffer() - returns the final size of the buf
562//===================================================================================================================
563uint8_t prepareStoreBuffer(char* hexdata, uint8_t*buf, uint8_t length) {
564 for (uint8_t i=0; i<length;i++)
565 buf[i] = BYTEfromHEX(hexdata[i*2], hexdata[i*2+1]);
566 return length;
567}
568
569//===================================================================================================================
570// validHexString() - walk a char stream and check all chars are valid ascii HEX chars

Callers

nothing calls this directly

Calls 1

BYTEfromHEXFunction · 0.85

Tested by

no test coverage detected