|
@@ -1756,7 +1756,7 @@ uint16 tcpUdsFunc(uint8 *Ptr, uint8 *AnsPtr)
|
|
case 0x0202: //soh correction did
|
|
case 0x0202: //soh correction did
|
|
{
|
|
{
|
|
|
|
|
|
- if(udsDataLen == 2)
|
|
|
|
|
|
+ if(udsDataLen == 1)
|
|
{
|
|
{
|
|
float sohCorrectionValue = (float)((float)((DataBuffer[0]<<8 | DataBuffer[1])&0xFFFF)*0.1);
|
|
float sohCorrectionValue = (float)((float)((DataBuffer[0]<<8 | DataBuffer[1])&0xFFFF)*0.1);
|
|
if(sohCorrectionValue > 0 && sohCorrectionValue<100) //有效修正
|
|
if(sohCorrectionValue > 0 && sohCorrectionValue<100) //有效修正
|