From 46b0281ed1dd216c8132e1ef3246cae76b006123 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 22 May 2024 22:03:01 +0800 Subject: [PATCH] update --- usrc/h2o2_sensor.cpp | 4 ++-- usrc/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/usrc/h2o2_sensor.cpp b/usrc/h2o2_sensor.cpp index 3f3cae7..9a57042 100644 --- a/usrc/h2o2_sensor.cpp +++ b/usrc/h2o2_sensor.cpp @@ -81,9 +81,9 @@ typedef struct { hpp272_data_t* H2O2Sensor::readSensorData() { sensordatacache.hydrogen_peroxide_volume = 0; - sensordatacache.h2o_h2o2_rs = 1 * 100; + sensordatacache.h2o_h2o2_rs = 0; sensordatacache.temperature1 = 20 * 100; - sensordatacache.relative_humidity = 31 * 100; + sensordatacache.relative_humidity = 0; static uint16_t rxbuf[128]; static hmp110_sensordata_t sensordata; diff --git a/usrc/main.cpp b/usrc/main.cpp index 9821b4c..4730963 100644 --- a/usrc/main.cpp +++ b/usrc/main.cpp @@ -222,6 +222,6 @@ void Main::run() { ZLOGI(TAG, "init done"); while (1) { ZHALCORE::getInstance()->loop(); - // m_h2o2_sensor.readSensorData(); + m_h2o2_sensor.readSensorData(); } }