This commit is contained in:
jl777
2018-04-12 17:53:20 +03:00
parent 2f9b6804d7
commit becfd453e9

View File

@@ -102,7 +102,7 @@ int32_t komodo_MoMoMdata(char *hexstr,int32_t hexsize,struct komodo_ccdataMoMoM
memcpy(&MoMoM,&tmp,sizeof(MoMoM));
mdata->MoMoM = MoMoM;
mdata->MoMoMdepth = offset;
if ( mdata->numpairs > 0 && mdata->numpairs == cJSON_GetArraySize(pairs) )
if ( mdata->numpairs > 0 )
{
len += iguana_rwnum(1,&hexdata[len],sizeof(uint32_t),(uint8_t *)&mdata->kmdstarti);
len += iguana_rwnum(1,&hexdata[len],sizeof(uint32_t),(uint8_t *)&mdata->kmdendi);