Browse Source

v3.3.1 | 修复恢复出厂设置后, 掉电丢失日志的BUG

master
zhaohe 3 weeks ago
parent
commit
bb19c0059e
  1. 9
      appsrc/appbase/utils/h2o2_computer/zh2o2_computer.c
  2. 2
      appsrc/appconfig/basic/zappversion.hpp
  3. 1
      appsrc/service/app_core.cpp

9
appsrc/appbase/utils/h2o2_computer/zh2o2_computer.c

@ -199,9 +199,16 @@ int zh2o2_computer_self_test() {
printf("T AirPressure RH H2O2(ppm) RS\n");
for (size_t i = 0; i < 500; i += 1) {
float rs = zh2o2_compute_rs(i, zh2o2_t2k(temperatureC), rh, AirPressure);
printf("%d %d %d %d %d\n", (int) temperatureC, (int)AirPressure, (int)rh, (int) i, (int)rs);
printf("%d %d %d %d %d\n", (int)temperatureC, (int)AirPressure, (int)rh, (int)i, (int)rs);
}
printf("Test passed\n");
// ppm temp rs
printf("result:%f\n", zh2o2_compute_rs(100, zh2o2_t2k(25), 50, 101325));
printf("result:%f\n", zh2o2_compute_rs(200, zh2o2_t2k(30), 50, 101325));
printf("result:%f\n", zh2o2_compute_rs(500, zh2o2_t2k(30), 60, 101325));
;
return 0;
}

2
appsrc/appconfig/basic/zappversion.hpp

@ -1,3 +1,3 @@
#pragma once
#define VERSION "3.3.0"
#define VERSION "3.3.1"
#define PROJECT_NAME "TRANSMIT_DM"

1
appsrc/service/app_core.cpp

@ -65,6 +65,7 @@ void AppCore::initialize() {
logger->warn("factory_reset_flag exists, will reset database and disinfectant logs");
system("rm -rf db");
system("rm -rf disinfection_logs");
system("rm -rf factory_reset_flag");
}
// 设备扩展设置数据库

Loading…
Cancel
Save