2026年7月16日 缓存
This commit is contained in:
@@ -106,6 +106,10 @@ void SysPara::loadParaFromFile(){
|
||||
file.seek(0);
|
||||
file.read((char *)¶,(long long int)sizeof(para));
|
||||
file.close();
|
||||
|
||||
// 韩国要求 画布大小可以设定在24 到 32 之间
|
||||
para.canvasHeight = qBound(unsigned(SCENE_MIN_HEIGHT), para.canvasHeight, unsigned(SCENE_MAX_HEIGHT));
|
||||
|
||||
if(para.gearPumpSpeedAlarm < 1000 || para.gearPumpSpeedAlarm > 2000)
|
||||
para.gearPumpSpeedAlarm = 1500;
|
||||
|
||||
@@ -181,6 +185,8 @@ void SysPara::loadDefaultPara(){
|
||||
|
||||
para.mixValveisNewVersion = 1;//混和阀是否是新管路
|
||||
para.gearPumpSpeedAlarm = 1500;
|
||||
|
||||
para.canvasHeight = 32;
|
||||
}
|
||||
|
||||
void SysPara::saveParaToFile(){
|
||||
@@ -1029,6 +1035,7 @@ void SysPara::saveRFIDPara()
|
||||
out << RFIDPara.cardInk;
|
||||
out << RFIDPara.cardSolvent;
|
||||
out << para.rfidCountDown;
|
||||
out << status.showInkWarningNumber << status.showSolventWarningNumber;
|
||||
|
||||
if(!file.flush()){
|
||||
LogInfo::setRunStatusText("RFID Para save Failed 1");
|
||||
@@ -1076,6 +1083,7 @@ bool SysPara::loadRFIDPara()
|
||||
in >> RFIDPara.cardInk;
|
||||
in >> RFIDPara.cardSolvent;
|
||||
in >> para.rfidCountDown;
|
||||
in >> status.showInkWarningNumber >> status.showSolventWarningNumber;
|
||||
|
||||
file.close();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user