From e0e6f7cf7ebf2a6fbfea13eb0743f5e95b1dc60c Mon Sep 17 00:00:00 2001
From: lizhanwei <Dana_Lee1016@126.com>
Date: 星期二, 11 二月 2020 13:10:06 +0800
Subject: [PATCH] 发送完单片机文件内容后删除dfu.bin;在发给移动站服务实际命令处打印log

---
 lib/src/main/java/com/anyun/exam/lib/SvrManager.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lib/src/main/java/com/anyun/exam/lib/SvrManager.java b/lib/src/main/java/com/anyun/exam/lib/SvrManager.java
index 9f761c7..4fc73ce 100644
--- a/lib/src/main/java/com/anyun/exam/lib/SvrManager.java
+++ b/lib/src/main/java/com/anyun/exam/lib/SvrManager.java
@@ -6,6 +6,7 @@
 import android.content.ServiceConnection;
 import android.os.IBinder;
 import android.os.RemoteException;
+import android.text.TextUtils;
 import android.util.Log;
 
 import java.util.LinkedList;
@@ -73,6 +74,12 @@
         if (!checkRemoteIsNull()){
             try {
                 remoteInterface.SendCmd(cmd,s);
+                if(cmd == 0x8100){
+                    MyLog.i(TAG,"CMD="+ String.format("0x%x",cmd) +" contentLength:"+(!TextUtils.isEmpty(s)?s.length():0));
+                }else{
+
+                    MyLog.i(TAG,"CMD="+ String.format("0x%x",cmd) +" content:"+(!TextUtils.isEmpty(s)?s:"null"));
+                }
             } catch (RemoteException e) {
                 e.printStackTrace();
             }

--
Gitblit v1.8.0