Browse Source

update

sunlight
zhaohe 11 months ago
parent
commit
5b0d6d742a
  1. 10
      uappbase/appcfg/appcfg.hpp
  2. 8
      uappbase/service/config_index.cpp
  3. 4
      uappbase/service/config_service.cpp
  4. 8
      usrc/service/page/submenu/Page_muSettings.cpp
  5. 1
      usrc/service/remote_controler_event_processer.cpp

10
uappbase/appcfg/appcfg.hpp

@ -65,10 +65,10 @@
#define ACID_DEFAULT_NAME14 "一氯乙酸" #define ACID_DEFAULT_NAME14 "一氯乙酸"
#define ACID_DEFAULT_NAME15 "氢氟酸" #define ACID_DEFAULT_NAME15 "氢氟酸"
#define PUMPDEFVEL "800" // 100r/min
#define PUMPDEFVEL "400" // 100r/min
// 通道每次小回流的液体长度 // 通道每次小回流的液体长度
#define CH0APPENDML 2.5
#define CH1APPENDML 2.5
#define CH2APPENDML 1
#define CH3APPENDML 1
#define CH0APPENDML 0.2
#define CH1APPENDML 0.2
#define CH2APPENDML 0.1
#define CH3APPENDML 0.1

8
uappbase/service/config_index.cpp

@ -98,10 +98,10 @@ static cfg_iterm_info_t cfg_iterm_infos[] = {
/*********************************************************************************************************************** /***********************************************************************************************************************
* »ØÁ÷²ÎÊýÅäÖà * * »ØÁ÷²ÎÊýÅäÖà *
***********************************************************************************************************************/ ***********************************************************************************************************************/
CFG_ITERM(kcfg_pipeLengthML0, kcfgt_float, "300"), //
CFG_ITERM(kcfg_pipeLengthML1, kcfgt_float, "300"), //
CFG_ITERM(kcfg_pipeLengthML2, kcfgt_float, "100"), //
CFG_ITERM(kcfg_pipeLengthML3, kcfgt_float, "100"), //
CFG_ITERM(kcfg_pipeLengthML0, kcfgt_float, "14"), //
CFG_ITERM(kcfg_pipeLengthML1, kcfgt_float, "14"), //
CFG_ITERM(kcfg_pipeLengthML2, kcfgt_float, "7"), //
CFG_ITERM(kcfg_pipeLengthML3, kcfgt_float, "7"), //
}; };
const char *cfgName(int32_t index) { const char *cfgName(int32_t index) {

4
uappbase/service/config_service.cpp

@ -3,7 +3,7 @@
#include "uappbase\service\app_event_bus.hpp" #include "uappbase\service\app_event_bus.hpp"
// //
#define CFG_HEADER 0x12345671
#define CFG_HEADER 0x12345670
/** /**
* @brief CFGÄÚ´æÊ¹Óà * @brief CFGÄÚ´æÊ¹ÓÃ
* *
@ -98,7 +98,7 @@ void ConfigService::setcfgAndFlush(config_index_t index, int32_t val) {
void ConfigService::setcfgAndFlush(config_index_t index, float val) { void ConfigService::setcfgAndFlush(config_index_t index, float val) {
zlock_guard lg(mutex); zlock_guard lg(mutex);
char buf[CONTENT_MAX_LEN]; char buf[CONTENT_MAX_LEN];
snprintf(buf, CONTENT_MAX_LEN, "%.2f", val);
snprintf(buf, CONTENT_MAX_LEN, "%.3f", val);
_setcfgAndFlush(index, buf); _setcfgAndFlush(index, buf);
} }

8
usrc/service/page/submenu/Page_muSettings.cpp

@ -150,22 +150,22 @@ void Page_muSettings::OnInputFieldContentChange(uint8_t bid, const char* text) {
} }
if (bid == ob_muSettings_pipeLen0) { if (bid == ob_muSettings_pipeLen0) {
CS->setcfg(kcfg_pipeLengthML0, text);
setCfgPipeLengthML(0, atof(text));
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(0))); UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(0)));
} }
if (bid == ob_muSettings_pipeLen1) { if (bid == ob_muSettings_pipeLen1) {
CS->setcfg(kcfg_pipeLengthML1, text);
setCfgPipeLengthML(1, atof(text));
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(1))); UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(1)));
} }
if (bid == ob_muSettings_pipeLen2) { if (bid == ob_muSettings_pipeLen2) {
CS->setcfg(kcfg_pipeLengthML2, text);
setCfgPipeLengthML(2, atof(text));
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(2))); UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(2)));
} }
if (bid == ob_muSettings_pipeLen3) { if (bid == ob_muSettings_pipeLen3) {
CS->setcfg(kcfg_pipeLengthML3, text);
setCfgPipeLengthML(3, atof(text));
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(3))); UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(3)));
} }

1
usrc/service/remote_controler_event_processer.cpp

@ -96,6 +96,7 @@ void RemoteControlerEventProcesser::processKeyEventFromRemoter(hand_acid_remoter
if (PUMPCS->isWorking()) { if (PUMPCS->isWorking()) {
PUMPCS->stop(); PUMPCS->stop();
RCTRL->setRemoterState(GSM->getRunMode(), PUMPCS->isWorking()); RCTRL->setRemoterState(GSM->getRunMode(), PUMPCS->isWorking());
return;
} }
if (UIS->getNowPage() == pg_muPumpTest) { if (UIS->getNowPage() == pg_muPumpTest) {

Loading…
Cancel
Save