|  | @ -240,24 +240,26 @@ void web::showSave(AsyncWebServerRequest *request) { | 
			
		
	
		
		
			
				
					|  |  |             // active power limit
 |  |  |             // active power limit
 | 
			
		
	
		
		
			
				
					|  |  |             uint16_t actPwrLimit = request->arg("inv" + String(i) + "ActivePowerLimit").toInt(); |  |  |             uint16_t actPwrLimit = request->arg("inv" + String(i) + "ActivePowerLimit").toInt(); | 
			
		
	
		
		
			
				
					|  |  |             uint16_t actPwrLimitControl = request->arg("inv" + String(i) + "PowerLimitControl").toInt(); |  |  |             uint16_t actPwrLimitControl = request->arg("inv" + String(i) + "PowerLimitControl").toInt(); | 
			
		
	
		
		
			
				
					
					|  |  |             if (actPwrLimit != 0xffff && actPwrLimit > 0){ |  |  |             if(NoPowerLimit != actPwrLimitControl) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->powerLimit[0] = actPwrLimit; |  |  |                 if (actPwrLimit != 0xffff && actPwrLimit > 0){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->powerLimit[1] = actPwrLimitControl; |  |  |                     iv->powerLimit[0] = actPwrLimit; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->devControlCmd = ActivePowerContr; |  |  |                     iv->powerLimit[1] = actPwrLimitControl; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->devControlRequest = true; |  |  |                     iv->devControlCmd = ActivePowerContr; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 if ((iv->powerLimit[1] & 0x0001) == 0x0001) |  |  |                     iv->devControlRequest = true; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to ") + String(iv->powerLimit[0]) + F("%") );     |  |  |                     if ((iv->powerLimit[1] & 0x0001) == 0x0001) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 else { |  |  |                         DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to ") + String(iv->powerLimit[0]) + F("%") ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to ") + String(iv->powerLimit[0]) + F("W") ); |  |  |                     else { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                     DPRINTLN(DBG_INFO, F("Power Limit Control Setting ") + String(iv->powerLimit[1])); |  |  |                         DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to ") + String(iv->powerLimit[0]) + F("W") ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             } |  |  |                         DPRINTLN(DBG_INFO, F("Power Limit Control Setting ") + String(iv->powerLimit[1])); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             } |  |  |                     } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |             if (actPwrLimit == 0xffff) { // set to 100%
 |  |  |                 } | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->powerLimit[0] = 100; |  |  |                 if (actPwrLimit == 0xffff) { // set to 100%
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->powerLimit[1] = RelativPersistent; |  |  |                     iv->powerLimit[0] = 100; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->devControlCmd = ActivePowerContr; |  |  |                     iv->powerLimit[1] = RelativPersistent; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 iv->devControlRequest = true; |  |  |                     iv->devControlCmd = ActivePowerContr; | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |                 DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to unlimted")); |  |  |                     iv->devControlRequest = true; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  |                     DPRINTLN(DBG_INFO, F("Power limit for inverter ") + String(iv->id) + F(" set to unlimted")); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |                 } | 
			
		
	
		
		
			
				
					|  |  |             } |  |  |             } | 
			
		
	
		
		
			
				
					|  |  |                  |  |  |                  | 
			
		
	
		
		
			
				
					|  |  |             // name
 |  |  |             // name
 | 
			
		
	
	
		
		
			
				
					|  | 
 |