=================================================================================================================== prepareSendBuffer() - returns the final size of the buf ===================================================================================================================
| 473 | // prepareSendBuffer() - returns the final size of the buf |
| 474 | //=================================================================================================================== |
| 475 | uint8_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 | //=================================================================================================================== |
no test coverage detected