updated tinyframe and implemented bulk write

This commit is contained in:
2017-12-23 22:56:17 +01:00
parent 2f5e30b8a4
commit 32c2c5a883
4 changed files with 34 additions and 9 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ void bulkwrite_start(TinyFrame *tf, struct bulk_write *bulk)
{
uint8_t buf[8];
PayloadBuilder pb = pb_start(buf, 4, NULL);
PayloadBuilder pb = pb_start(buf, 8, NULL);
pb_u32(&pb, bulk->len);
pb_u32(&pb, TF_MAX_PAYLOAD_RX);