Added MBAG_DATA

FossilOrigin-Name: 51923e5af6c0f3f8b784e87393bf26bd5a660da0a53aa0ae97c27a572161de35
This commit is contained in:
7u83@mail.ru 2016-03-28 08:48:25 +00:00
parent fe9e01e125
commit 9479795a7b
1 changed files with 4 additions and 0 deletions

View File

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