Merge remote-tracking branch 'origin/dev_robotaxi-d-app-module_290_220715_2.9.0' into test_robotaxi-d-app-module_290_220715_2.9.0.1

This commit is contained in:
renwj
2022-08-10 18:01:04 +08:00
2 changed files with 4 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -246,6 +246,10 @@ public class AdasChannel implements IAdasNetCommApi, FpgaSocket.IWebSocketConnec
return false;
}
ByteString byteString = ByteString.of(bytes);
if (!byteString.startsWith(Constants.RAW_MG)) {
CupidLogUtils.e(TAG, "协议不匹配,命令下发失败 bytes=" + ByteUtil.byteArrToHex(bytes));
return false;
}
return mSocket.sendDataWebSocket(byteString);
}