From 3ce7d9cbccabf7f94d8203a98796599cd9dd5411 Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期二, 11 二月 2020 17:14:27 +0800
Subject: [PATCH] 修改了上坡起步。

---
 lib/src/main/cpp/master/comm_if.cpp |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/lib/src/main/cpp/master/comm_if.cpp b/lib/src/main/cpp/master/comm_if.cpp
index f799243..fc9f457 100644
--- a/lib/src/main/cpp/master/comm_if.cpp
+++ b/lib/src/main/cpp/master/comm_if.cpp
@@ -14,6 +14,7 @@
 #include "../defs.h"
 #include "../common/apptimer.h"
 #include "../jni_log.h"
+#include "../mcu/mcu_if.h"
 
 #include <string>
 #include <iostream>
@@ -47,6 +48,7 @@
 #define ID_SM_CAR               0x000E
 #define ID_SM_RTCM_IND           0x000F
 #define ID_SM_DEBUG_INFO        0x0010
+#define ID_MS_FILE              0x8100
 
 #define MA_OUT_GPS_BRIEF        0x0001
 #define MA_OUT_RTK_BRIEF        0x0002
@@ -660,3 +662,15 @@
         default:break;
     }
 }
+
+void MA_MainProcBinMsgEntry(int cmd, const uint8_t *value, int length)
+{
+    switch (cmd) {
+        case ID_MS_FILE: {
+            UploadDfuFile(value, length);
+            break;
+        }
+        default:
+            break;
+    }
+}

--
Gitblit v1.8.0