From 87156fa3adfa2e3232a6f6e612584aa8a4ebaea1 Mon Sep 17 00:00:00 2001 From: yy1717 <fctom1215@outlook.com> Date: 星期二, 19 一月 2021 18:40:25 +0800 Subject: [PATCH] 添加模拟灯光 --- lib/src/main/cpp/mcu/mcu_if.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/src/main/cpp/mcu/mcu_if.cpp b/lib/src/main/cpp/mcu/mcu_if.cpp index b5924d6..10b9b7d 100644 --- a/lib/src/main/cpp/mcu/mcu_if.cpp +++ b/lib/src/main/cpp/mcu/mcu_if.cpp @@ -148,7 +148,11 @@ if (RxBufLen > 0) { // DEBUG("RECV LEN %d", RxBufLen); - ParseMcu(RxBuf, RxBufLen); + if (Virtual2IsConnected()) { + + } else { + ParseMcu(RxBuf, RxBufLen); + } RxBufLen = 0; } } -- Gitblit v1.8.0