uncomment homing and send position
This commit is contained in:
		
							
								
								
									
										8
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								main.c
									
									
									
									
									
								
							@@ -244,6 +244,14 @@ int main()
 | 
			
		||||
        if(millis() - timer_modbus_poll > 1000){
 | 
			
		||||
            timer_modbus_poll += 1000;
 | 
			
		||||
            do_kraftsensor();
 | 
			
		||||
#if PLC_MQTT_ENABLED
 | 
			
		||||
            send_abzug_speed();
 | 
			
		||||
            char msg[10];
 | 
			
		||||
            ltoa(kraftsensor_value, msg, 10);
 | 
			
		||||
            mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/kraft", msg, strlen(msg));
 | 
			
		||||
            ltoa(taenzer_state.pos, msg, 10);
 | 
			
		||||
            mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/speicher/pos", msg, strlen(msg));
 | 
			
		||||
#endif
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        do_notaus();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user