From 026e1750503ec74bbe181bce3ece9931c244e367 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期三, 03 二月 2021 09:23:31 +0800
Subject: [PATCH] 适配模拟灯光。
---
lib/src/main/cpp/rtk_platform/platform.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/src/main/cpp/rtk_platform/platform.cpp b/lib/src/main/cpp/rtk_platform/platform.cpp
index 33efdc8..27dd2a5 100644
--- a/lib/src/main/cpp/rtk_platform/platform.cpp
+++ b/lib/src/main/cpp/rtk_platform/platform.cpp
@@ -516,6 +516,7 @@
break;
}
case CAR_SENSOR_UPDATE_EVT: {
+ DEBUG("CAR_SENSOR_UPDATE_EVT");
struct carSensorBrief brief;
int x = 20;
@@ -585,6 +586,8 @@
if (sensor.clutch == 1)
sensor.gear = 0;
+ DEBUG("鐢垫睜鐢靛帇 %f", sensor.cellVolt);
+
UpdateSensor(&sensor);
break;
}
--
Gitblit v1.8.0