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

Function prepareSendBuffer

RFM69_OTA.cpp:475–481  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

473// prepareSendBuffer() - returns the final size of the buf
474//===================================================================================================================
475uint8_t prepareSendBuffer(char* hexdata, uint8_t*buf, uint8_t length, uint16_t seq)
476{
477 uint8_t seqLen = sprintf(((char*)buf), "FLX:%u:", seq);
478 for (uint8_t i=0; i<length;i++)
479 buf[seqLen+i] = BYTEfromHEX(hexdata[i*2], hexdata[i*2+1]);
480 return seqLen+length;
481}
482
483
484//===================================================================================================================

Callers 1

HandleSerialHEXDataFunction · 0.85

Calls 1

BYTEfromHEXFunction · 0.85

Tested by

no test coverage detected