@@ -1444,7 +1444,7 @@ void TuyaMCU_V0_ParseRealTimeWithRecordStorage(const byte* data, int len, bool b
14441444 const int remaining = len - (ofs + 4 );
14451445 if (sectorLen > remaining ) {
14461446 addLogAdv (LOG_ERROR , LOG_FEATURE_TUYAMCU ,
1447- "V0_ParseRealTime: ERROR: payload truncated (dpId =%i type=%i-%s sectorLen =%i remaining=%i ofs=%i total =%i)\n" ,
1447+ "V0_ParseRealTime: truncated DP payload (id =%i type=%i-%s len =%i rem =%i)\n" ,
14481448 dpId , dataType , TuyaMCU_GetDataTypeString (dataType ), sectorLen , remaining , ofs , len );
14491449 break ;
14501450 }
@@ -1641,7 +1641,7 @@ void TuyaMCU_ParseStateMessage(const byte* data, int len) {
16411641 int remaining = len - (ofs + 4 );
16421642 if (sectorLen > remaining ) {
16431643 addLogAdv (LOG_ERROR , LOG_FEATURE_TUYAMCU ,
1644- "ParseState: ERROR: STATE payload truncated (dpId =%i type=%i-%s sectorLen =%i remaining=%i ofs=%i total =%i)\n" ,
1644+ "ParseState: truncated DP payload (id =%i type=%i-%s len =%i rem =%i)\n" ,
16451645 dpId , dataType , TuyaMCU_GetDataTypeString (dataType ), sectorLen , remaining , ofs , len );
16461646 break ;
16471647 }
@@ -1670,7 +1670,7 @@ void TuyaMCU_ParseStateMessage(const byte* data, int len) {
16701670 byte * tmp = (byte * )realloc (mapping -> rawData , useLen );
16711671 if (tmp == NULL ) {
16721672 addLogAdv (LOG_ERROR , LOG_FEATURE_TUYAMCU ,
1673- "ParseState: ERROR: realloc failed for rawData (dpId =%i type=%i-%s need=%i)\n" ,
1673+ "ParseState: rawData alloc failed (id =%i type=%i-%s need=%i)\n" ,
16741674 dpId , dataType , TuyaMCU_GetDataTypeString (dataType ), useLen );
16751675 } else {
16761676 mapping -> rawData = tmp ;
0 commit comments