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); }