Browse Source

update

master
zhaohe 1 year ago
parent
commit
46b0281ed1
  1. 4
      usrc/h2o2_sensor.cpp
  2. 2
      usrc/main.cpp

4
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;

2
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();
}
}
Loading…
Cancel
Save