From 9479795a7baf98d897333ae1c8e1cda6919e7873 Mon Sep 17 00:00:00 2001 From: "7u83@mail.ru" <7u83@mail.ru@noemail.net> Date: Mon, 28 Mar 2016 08:48:25 +0000 Subject: [PATCH] Added MBAG_DATA FossilOrigin-Name: 51923e5af6c0f3f8b784e87393bf26bd5a660da0a53aa0ae97c27a572161de35 --- src/cw/cw_put_mbag_item.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cw/cw_put_mbag_item.c b/src/cw/cw_put_mbag_item.c index 7febad8f..544c23be 100644 --- a/src/cw/cw_put_mbag_item.c +++ b/src/cw/cw_put_mbag_item.c @@ -29,6 +29,10 @@ int cw_put_mbag_item(uint8_t * dst, struct mbag_item *item) return cw_put_data(dst, item->data, strlen((char *) item->data)); } + if (MBAG_DATA == item->type){ + return cw_put_data(dst, item->data+1, *((uint8_t*)item->data)); + } + if (MBAG_BYTE == item->type){ return cw_put_byte(dst, item->byte); }