fix bug
This commit is contained in:
@@ -93,7 +93,7 @@ public class SocketHandler {
|
||||
|
||||
@Override
|
||||
public void onMsgReceived(int msgType, WebSocketData webSocketData) {
|
||||
if (msgType == MSG_TYPE_ACK.getMsgType()) {
|
||||
if (webSocketData.getMsgType() == MSG_TYPE_ACK.getMsgType()) {
|
||||
FrequencyData frequencyData = GsonUtil.objectFromJson(webSocketData.getData(), FrequencyData.class);
|
||||
if (frequencyData == null) {
|
||||
Logger.e(TAG, "onMsgReceived FrequencyData == null ");
|
||||
@@ -108,7 +108,7 @@ public class SocketHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (msgType == MSG_TYPE_DOWNLINK_CAR_DATA.getMsgType()) {
|
||||
if (webSocketData.getMsgType() == MSG_TYPE_DOWNLINK_CAR_DATA.getMsgType()) {
|
||||
MogoSnapshotSetData snapshotSetData = GsonUtil.objectFromJson(webSocketData.getData(), MogoSnapshotSetData.class);
|
||||
if (snapshotSetData == null) {
|
||||
Logger.e(TAG, "onMsgReceived MogoSnapshotSetData == null ");
|
||||
|
||||
Reference in New Issue
Block a user