Ignore filler DIF (= 0x2F)

This commit is contained in:
Jakob Skov-Pedersen
2013-03-11 09:22:52 +01:00
parent 91f0c87207
commit 363f59a149
3 changed files with 28 additions and 0 deletions

View File

@ -2677,6 +2677,12 @@ mbus_data_variable_parse(mbus_frame *frame, mbus_data_variable *data)
while (i < frame->data_size)
{
// Skip filler dif=2F
while (((frame->data[i] & 0xFF) == 0x2F) && (i < frame->data_size)) {
i++;
}
if (i == frame->data_size) break;
if ((record = mbus_data_record_new()) == NULL)
{
// clean up...