|  | @@ -288,7 +288,7 @@ static void MenuDisplay_entry(void *parameter) {
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  				else {
 | 
	
		
			
				|  |  |  						display_Current_noweight_();
 | 
	
		
			
				|  |  | -						display_Now_(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +						display_Now_(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  //	  HAL_IWDG_Refresh(&hiwdg);
 | 
	
	
		
			
				|  | @@ -377,10 +377,10 @@ void getDisplay(void)
 | 
	
		
			
				|  |  |  		else
 | 
	
		
			
				|  |  |  		{
 | 
	
		
			
				|  |  |  				if (WeightConst_Product_Run>0 && WeightConst_displayTotal==0  && pf_comp.data.pfsort!=0xFE && WeightConst_WeightHaveBegin==1)
 | 
	
		
			
				|  |  | -						WeightConst_Weight_displayW = WeightConst_WeightCurTem - WeightConst_WeightTarget;
 | 
	
		
			
				|  |  | +						WeightConst_Weight_displayW = WeightConst_WeightCur - WeightConst_WeightTarget;
 | 
	
		
			
				|  |  |  				else
 | 
	
		
			
				|  |  | -						WeightConst_Weight_displayW = WeightConst_WeightCurTem;
 | 
	
		
			
				|  |  | -        WeightConst_Weight_displayCurW = WeightConst_WeightCurTem;
 | 
	
		
			
				|  |  | +						WeightConst_Weight_displayW = WeightConst_WeightCur;
 | 
	
		
			
				|  |  | +        WeightConst_Weight_displayCurW = WeightConst_WeightCur;
 | 
	
		
			
				|  |  |  				for (int SendDisplay_i = 0; SendDisplay_i < 8; SendDisplay_i++)   //ÏÔÊ¾ÖØÁ¿
 | 
	
		
			
				|  |  |  						WeightConst_Weight_display[SendDisplay_i]=0x20;	
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -799,11 +799,11 @@ static void Display_entry(void *parameter) {
 | 
	
		
			
				|  |  |  						{
 | 
	
		
			
				|  |  |  							if (isn>=1)
 | 
	
		
			
				|  |  |  							{
 | 
	
		
			
				|  |  | -								display_Now_(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +								display_Now_(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  							else{							
 | 
	
		
			
				|  |  |  								display_Now();
 | 
	
		
			
				|  |  | -								display_Total(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +								display_Total(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  								row++;
 | 
	
		
			
				|  |  |  								if (row%rowx==0){
 | 
	
		
			
				|  |  |  									for (int j=0; j<39; j++)	uart4_send_data[j] = display_productName_v[j];
 | 
	
	
		
			
				|  | @@ -869,22 +869,22 @@ static void Display_entry(void *parameter) {
 | 
	
		
			
				|  |  |  							if(WeightConst_Product_Run)
 | 
	
		
			
				|  |  |  							{
 | 
	
		
			
				|  |  |  								rt_uint8_t index = 0,value = 0;	
 | 
	
		
			
				|  |  | -                signed long WeightConst_WeightCurTem_ = 0;		
 | 
	
		
			
				|  |  | +                signed long WeightConst_WeightCur_ = 0;		
 | 
	
		
			
				|  |  |  								uart4_send_data[0]=0x20;uart4_send_data[1]=0x20;uart4_send_data[2]=0x20;
 | 
	
		
			
				|  |  |  								uart4_send_data[3]=0x20;uart4_send_data[4]=0x30;	
 | 
	
		
			
				|  |  | -                if 	(WeightConst_WeightCurTem<0)
 | 
	
		
			
				|  |  | +                if 	(WeightConst_WeightCur<0)
 | 
	
		
			
				|  |  |  								{									
 | 
	
		
			
				|  |  | -									 WeightConst_WeightCurTem_ = WeightConst_WeightCurTem*-1;
 | 
	
		
			
				|  |  | +									 WeightConst_WeightCur_ = WeightConst_WeightCur*-1;
 | 
	
		
			
				|  |  |  									 uart4_send_data[0] = 0x2D;
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  | -                else 	WeightConst_WeightCurTem_ = WeightConst_WeightCurTem;			
 | 
	
		
			
				|  |  | +                else 	WeightConst_WeightCur_ = WeightConst_WeightCur;			
 | 
	
		
			
				|  |  |  								
 | 
	
		
			
				|  |  |  								
 | 
	
		
			
				|  |  |  								for (int SendDisplay_i = 0; SendDisplay_i < 5; SendDisplay_i++) {
 | 
	
		
			
				|  |  | -										if (SendDisplay_i>0)	WeightConst_WeightCurTem_=WeightConst_WeightCurTem_/10;
 | 
	
		
			
				|  |  | +										if (SendDisplay_i>0)	WeightConst_WeightCur_=WeightConst_WeightCur_/10;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -										if (WeightConst_WeightCurTem_>0)
 | 
	
		
			
				|  |  | -												uart4_send_data[4-SendDisplay_i] = (WeightConst_WeightCurTem_)%10+'0';
 | 
	
		
			
				|  |  | +										if (WeightConst_WeightCur_>0)
 | 
	
		
			
				|  |  | +												uart4_send_data[4-SendDisplay_i] = (WeightConst_WeightCur_)%10+'0';
 | 
	
		
			
				|  |  |  										else break;
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  								get_msg(0,//Xstart
 | 
	
	
		
			
				|  | @@ -958,38 +958,38 @@ static void Display_entry(void *parameter) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  								uart4_send_data[index++] =  0x10;			
 | 
	
		
			
				|  |  |  													
 | 
	
		
			
				|  |  | -                WeightConst_WeightCurTem_ = WeightConst_WeightTargetTemp;	
 | 
	
		
			
				|  |  | -								value = (WeightConst_WeightCurTem_ / 10000) % 10;
 | 
	
		
			
				|  |  | +                WeightConst_WeightCur_ = WeightConst_WeightTargetTemp;	
 | 
	
		
			
				|  |  | +								value = (WeightConst_WeightCur_ / 10000) % 10;
 | 
	
		
			
				|  |  |  								if(value != 0) {
 | 
	
		
			
				|  |  |  									uart4_send_data[index++] = value + 0x30;
 | 
	
		
			
				|  |  | -									uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 1000) % 10 + 0x30;
 | 
	
		
			
				|  |  | -									uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 100) % 10 + 0x30;
 | 
	
		
			
				|  |  | -									uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | -									uart4_send_data[index++] = WeightConst_WeightCurTem_ % 10 + 0x30;
 | 
	
		
			
				|  |  | +									uart4_send_data[index++] = (WeightConst_WeightCur_ / 1000) % 10 + 0x30;
 | 
	
		
			
				|  |  | +									uart4_send_data[index++] = (WeightConst_WeightCur_ / 100) % 10 + 0x30;
 | 
	
		
			
				|  |  | +									uart4_send_data[index++] = (WeightConst_WeightCur_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | +									uart4_send_data[index++] = WeightConst_WeightCur_ % 10 + 0x30;
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  								else {
 | 
	
		
			
				|  |  | -									  value = (WeightConst_WeightCurTem_ / 1000) % 10;
 | 
	
		
			
				|  |  | +									  value = (WeightConst_WeightCur_ / 1000) % 10;
 | 
	
		
			
				|  |  |  										if(value != 0) {
 | 
	
		
			
				|  |  |  											uart4_send_data[index++] = value + 0x30;
 | 
	
		
			
				|  |  | -											uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 100) % 10 + 0x30;
 | 
	
		
			
				|  |  | -											uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | -											uart4_send_data[index++] = WeightConst_WeightCurTem_ % 10 + 0x30;
 | 
	
		
			
				|  |  | +											uart4_send_data[index++] = (WeightConst_WeightCur_ / 100) % 10 + 0x30;
 | 
	
		
			
				|  |  | +											uart4_send_data[index++] = (WeightConst_WeightCur_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | +											uart4_send_data[index++] = WeightConst_WeightCur_ % 10 + 0x30;
 | 
	
		
			
				|  |  |  										}
 | 
	
		
			
				|  |  |  									  else {
 | 
	
		
			
				|  |  | -											value = (WeightConst_WeightCurTem_ / 100) % 10;
 | 
	
		
			
				|  |  | +											value = (WeightConst_WeightCur_ / 100) % 10;
 | 
	
		
			
				|  |  |  											if(value != 0) {
 | 
	
		
			
				|  |  |  												uart4_send_data[index++] = value + 0x30;
 | 
	
		
			
				|  |  | -												uart4_send_data[index++] = (WeightConst_WeightCurTem_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | -												uart4_send_data[index++] = WeightConst_WeightCurTem_ % 10 + 0x30;
 | 
	
		
			
				|  |  | +												uart4_send_data[index++] = (WeightConst_WeightCur_ / 10) % 10 + 0x30;
 | 
	
		
			
				|  |  | +												uart4_send_data[index++] = WeightConst_WeightCur_ % 10 + 0x30;
 | 
	
		
			
				|  |  |  											}
 | 
	
		
			
				|  |  |  											else {
 | 
	
		
			
				|  |  | -												value = (WeightConst_WeightCurTem_ / 10) % 10;
 | 
	
		
			
				|  |  | +												value = (WeightConst_WeightCur_ / 10) % 10;
 | 
	
		
			
				|  |  |  												if(value != 0) {
 | 
	
		
			
				|  |  |  													uart4_send_data[index++] = value + 0x30;
 | 
	
		
			
				|  |  | -												  uart4_send_data[index++] = WeightConst_WeightCurTem_ % 10 + 0x30;
 | 
	
		
			
				|  |  | +												  uart4_send_data[index++] = WeightConst_WeightCur_ % 10 + 0x30;
 | 
	
		
			
				|  |  |  												}
 | 
	
		
			
				|  |  |  												else {
 | 
	
		
			
				|  |  | -													 uart4_send_data[index++] = WeightConst_WeightCurTem_ % 10 + 0x30;
 | 
	
		
			
				|  |  | +													 uart4_send_data[index++] = WeightConst_WeightCur_ % 10 + 0x30;
 | 
	
		
			
				|  |  |  												}
 | 
	
		
			
				|  |  |  											}
 | 
	
		
			
				|  |  |  										}
 | 
	
	
		
			
				|  | @@ -1030,33 +1030,33 @@ static void Display_entry(void *parameter) {
 | 
	
		
			
				|  |  |  							uart4_send_data[1]=0;
 | 
	
		
			
				|  |  |  							uart4_send_data[2]=0;
 | 
	
		
			
				|  |  |  							uart4_send_data[3]=0;
 | 
	
		
			
				|  |  | -							if ((WeightConst_WeightTarget < WeightConst_WeightCurTem && pf_comp.data.addorout==0)
 | 
	
		
			
				|  |  | -								|| (WeightConst_WeightTarget > WeightConst_WeightCurTem && pf_comp.data.addorout==1))
 | 
	
		
			
				|  |  | +							if ((WeightConst_WeightTarget < WeightConst_WeightCur && pf_comp.data.addorout==0)
 | 
	
		
			
				|  |  | +								|| (WeightConst_WeightTarget > WeightConst_WeightCur && pf_comp.data.addorout==1))
 | 
	
		
			
				|  |  |  							{
 | 
	
		
			
				|  |  |  									uart4_send_data[0]= 100;
 | 
	
		
			
				|  |  |  								 uart4_send_data[1]=0xFF;								
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  							else
 | 
	
		
			
				|  |  |  							{		
 | 
	
		
			
				|  |  | -                  if (WeightConst_WeightCurTem<(WeightConst_WeightTarget-WeightConst_WeightTargetTemp) &&  pf_comp.data.addorout==0)
 | 
	
		
			
				|  |  | +                  if (WeightConst_WeightCur<(WeightConst_WeightTarget-WeightConst_WeightTargetTemp) &&  pf_comp.data.addorout==0)
 | 
	
		
			
				|  |  |                      tempw=0;
 | 
	
		
			
				|  |  | -									else if (WeightConst_WeightCurTem>(WeightConst_WeightTargetTemp+WeightConst_WeightTarget) &&  pf_comp.data.addorout==1)
 | 
	
		
			
				|  |  | +									else if (WeightConst_WeightCur>(WeightConst_WeightTargetTemp+WeightConst_WeightTarget) &&  pf_comp.data.addorout==1)
 | 
	
		
			
				|  |  |                      tempw=0;
 | 
	
		
			
				|  |  |                    else if (pf_comp.data.addorout==0)									
 | 
	
		
			
				|  |  | -									 tempw = ( WeightConst_WeightCurTem-(WeightConst_WeightTarget-WeightConst_WeightTargetTemp));
 | 
	
		
			
				|  |  | +									 tempw = ( WeightConst_WeightCur-(WeightConst_WeightTarget-WeightConst_WeightTargetTemp));
 | 
	
		
			
				|  |  |  									else 
 | 
	
		
			
				|  |  | -										tempw = ((WeightConst_WeightTarget+WeightConst_WeightTargetTemp)-WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +										tempw = ((WeightConst_WeightTarget+WeightConst_WeightTargetTemp)-WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  								  uart4_send_data[0]=tempw*100/WeightConst_WeightTargetTemp;
 | 
	
		
			
				|  |  |  								
 | 
	
		
			
				|  |  |  						
 | 
	
		
			
				|  |  | -								if ((WeightConst_WeightCurTem>WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==0) ||
 | 
	
		
			
				|  |  | -									(WeightConst_WeightCurTem<WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==1)
 | 
	
		
			
				|  |  | +								if ((WeightConst_WeightCur>WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==0) ||
 | 
	
		
			
				|  |  | +									(WeightConst_WeightCur<WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==1)
 | 
	
		
			
				|  |  |  								)
 | 
	
		
			
				|  |  |  								{
 | 
	
		
			
				|  |  |  								   uart4_send_data[2]=0xFF;
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  | -								else if ((WeightConst_WeightCurTem+30>WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==0)||
 | 
	
		
			
				|  |  | -									(WeightConst_WeightCurTem-30<WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==1))
 | 
	
		
			
				|  |  | +								else if ((WeightConst_WeightCur+30>WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==0)||
 | 
	
		
			
				|  |  | +									(WeightConst_WeightCur-30<WeightConst_WeightTargetAllowMin && pf_comp.data.addorout==1))
 | 
	
		
			
				|  |  |  									{uart4_send_data[1]=0xFF;		uart4_send_data[3]=0xFF;	
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |                  else 
 | 
	
	
		
			
				|  | @@ -1167,11 +1167,11 @@ static void Display_entry(void *parameter) {
 | 
	
		
			
				|  |  |  //            if (WeightConst_Product_Run) {
 | 
	
		
			
				|  |  |  //                if(isn!=1 && (ScreenBufSize()<100)) {
 | 
	
		
			
				|  |  |  //                    display_Now();
 | 
	
		
			
				|  |  | -//                    display_Total(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +//                    display_Total(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  //                }
 | 
	
		
			
				|  |  | -//                else if(isn==1) display_Now_(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +//                else if(isn==1) display_Now_(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  //            }
 | 
	
		
			
				|  |  | -//            else if(isn==1 && WeightConst_Run==1) display_Now_(WeightConst_WeightCurTem);
 | 
	
		
			
				|  |  | +//            else if(isn==1 && WeightConst_Run==1) display_Now_(WeightConst_WeightCur);
 | 
	
		
			
				|  |  |  //        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  //        if (SendRemote_timer>700 && RemoteSendDisplay &&
 |