|
|
@ -69,7 +69,10 @@ void Page_muSettings::updatePage() { |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef1, zfmt("%.4f", getMotorMLPR(1))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef2, zfmt("%.4f", getMotorMLPR(2))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pumpCoef3, zfmt("%.4f", getMotorMLPR(3))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen0, getCfgStr(kcfg_pipeLengthML)); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen0, zfmt("%.2f", getCfgPipeLengthML(0))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen1, zfmt("%.2f", getCfgPipeLengthML(1))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen2, zfmt("%.2f", getCfgPipeLengthML(2))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_pipeLen3, zfmt("%.2f", getCfgPipeLengthML(3))); |
|
|
|
// TODO:改成4个输入框
|
|
|
|
UIS->setTxt(PAGE, ob_muSettings_addAcidVel0, zitoa(getMxRunRPM(0))); |
|
|
|
UIS->setTxt(PAGE, ob_muSettings_addAcidVel1, zitoa(getMxRunRPM(1))); |
|
|
@ -138,9 +141,32 @@ void Page_muSettings::OnInputFieldContentChange(uint8_t bid, const char* text) { |
|
|
|
* pipeLen * |
|
|
|
***********************************************************************************************************************/ |
|
|
|
|
|
|
|
if (bid == ob_muSettings_pipeLen0 || bid == ob_muSettings_pipeLen1 || bid == ob_muSettings_pipeLen2 || bid == ob_muSettings_pipeLen3) { |
|
|
|
float len = atof(text); |
|
|
|
if (len < 0.1) { |
|
|
|
UIS->alert("管道长度不能小于0.1"); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (bid == ob_muSettings_pipeLen0) { |
|
|
|
CS->setcfg(kcfg_pipeLengthML, text); |
|
|
|
UIS->setTxt(bid, getCfgStr(kcfg_pipeLengthML)); |
|
|
|
CS->setcfg(kcfg_pipeLengthML0, text); |
|
|
|
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(0))); |
|
|
|
} |
|
|
|
|
|
|
|
if (bid == ob_muSettings_pipeLen1) { |
|
|
|
CS->setcfg(kcfg_pipeLengthML1, text); |
|
|
|
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(1))); |
|
|
|
} |
|
|
|
|
|
|
|
if (bid == ob_muSettings_pipeLen2) { |
|
|
|
CS->setcfg(kcfg_pipeLengthML2, text); |
|
|
|
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(2))); |
|
|
|
} |
|
|
|
|
|
|
|
if (bid == ob_muSettings_pipeLen3) { |
|
|
|
CS->setcfg(kcfg_pipeLengthML3, text); |
|
|
|
UIS->setTxt(bid, zfmt("%.2f", getCfgPipeLengthML(3))); |
|
|
|
} |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|