From 4581cc42ba485366603ca8e3f61183f6a50ad72f Mon Sep 17 00:00:00 2001
From: fctom1215 <fctom1215@outlook.com>
Date: 星期五, 21 二月 2020 17:18:30 +0800
Subject: [PATCH] GPS信息合并到RTK中,以RTK包,发送
---
lib/src/main/cpp/mcu/mcu_if.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/lib/src/main/cpp/mcu/mcu_if.cpp b/lib/src/main/cpp/mcu/mcu_if.cpp
index d9bb96a..4682904 100644
--- a/lib/src/main/cpp/mcu/mcu_if.cpp
+++ b/lib/src/main/cpp/mcu/mcu_if.cpp
@@ -45,6 +45,7 @@
#define ID_CM_RTK_DATA 0x0008
#define ID_CM_READ_RFCARD 0x0009
#define ID_MC_RFCARD_RSP 0x8009
+#define ID_CM_SHUTDOWN 0x0020
static parse_status_t parse_status;
@@ -514,3 +515,10 @@
AppTimer_add(ReadCardTimeout, D_SEC(3));
SendMcuCommand(ID_CM_READ_RFCARD, NULL, 0);
}
+
+void ShutdownInd(int timeout)
+{
+ uint8_t v = timeout;
+
+ SendMcuCommand(ID_CM_SHUTDOWN, &v, 1);
+}
--
Gitblit v1.8.0