From b38c142b6781f7e345adba8ff6b3b6dc093d60c0 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 24 May 2024 23:50:37 +0800 Subject: [PATCH] hpp272 version --- .settings/language.settings.xml | 4 ++-- little_disinfection_high_power_ctrl_prj Debug.launch | 10 ++++++---- usrc/hardware.cpp | 12 ++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index d13e4c8..79984cc 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/little_disinfection_high_power_ctrl_prj Debug.launch b/little_disinfection_high_power_ctrl_prj Debug.launch index e80df3e..487b507 100644 --- a/little_disinfection_high_power_ctrl_prj Debug.launch +++ b/little_disinfection_high_power_ctrl_prj Debug.launch @@ -5,7 +5,7 @@ - + @@ -20,10 +20,11 @@ - + + @@ -54,6 +55,7 @@ + @@ -64,9 +66,9 @@ - + - + diff --git a/usrc/hardware.cpp b/usrc/hardware.cpp index 23816a2..c34f05d 100644 --- a/usrc/hardware.cpp +++ b/usrc/hardware.cpp @@ -229,7 +229,7 @@ int32_t Hardware::process_rx_packet(from_where_t fromwhere, uint8_t *packet, int static hpp272_data_t fake_hpp272data; PROCESS_CMD(kcmd_m211887_operation, 0, 1) { - // hpp272_data_t *hpp272data = hpp272.readVal(); + hpp272_data_t *hpp272data = hpp272.readVal(); #if 0 data.h2o2 = m_hpp272_data_1.hydrogen_peroxide_volume; @@ -238,10 +238,10 @@ int32_t Hardware::process_rx_packet(from_where_t fromwhere, uint8_t *packet, int data.saturation = m_hpp272_data_1.h2o_h2o2_rs / 100; #endif - fake_hpp272data.hydrogen_peroxide_volume = hydrogen_peroxide_volume_get_ppm(); // ppm - fake_hpp272data.relative_humidity = 50 * 100; // %RH * 100 - fake_hpp272data.temperature1 = 25 * 100; // °C * 100 - fake_hpp272data.h2o_h2o2_rs = 1 * 100; // %RS * 100 + // fake_hpp272data.hydrogen_peroxide_volume = hydrogen_peroxide_volume_get_ppm(); // ppm + // fake_hpp272data.relative_humidity = 50 * 100; // %RH * 100 + // fake_hpp272data.temperature1 = 25 * 100; // °C * 100 + // fake_hpp272data.h2o_h2o2_rs = 1 * 100; // %RS * 100 #if 0 fake_hpp272data.absolute_hydrogen_peroxide = 105; @@ -256,7 +256,7 @@ int32_t Hardware::process_rx_packet(from_where_t fromwhere, uint8_t *packet, int fake_hpp272data.water_vapor_saturation_pressure_h2o_h2o2 = 114; #endif - hpp272_data_t *hpp272data = &fake_hpp272data; + // hpp272_data_t *hpp272data = &fake_hpp272data; if (hpp272data) { receipt[0] = 1; receipt[1] = 0;