use function parameter "offset" instead of default 0x00 offset in WriteBuffer
Fork of SX1280Lib by
Revision 2:3fd91078f344, committed 2017-04-02
- Comitter:
- ubhat
- Date:
- Sun Apr 02 10:01:59 2017 +0000
- Parent:
- 1:cd0d08df0617
- Commit message:
- use function parameter "offset" instead of default 0x00 offset in WriteBuffer
Changed in this revision
sx1280.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r cd0d08df0617 -r 3fd91078f344 sx1280.cpp --- a/sx1280.cpp Wed Mar 15 16:03:25 2017 +0000 +++ b/sx1280.cpp Sun Apr 02 10:01:59 2017 +0000 @@ -530,7 +530,7 @@ void SX1280::SetPayload( uint8_t *buffer, uint8_t size, uint8_t offset ) { - WriteBuffer( 0x00, buffer, size ); + WriteBuffer( offset, buffer, size ); } uint8_t SX1280::GetPayload( uint8_t *buffer, uint8_t *size , uint8_t maxSize )