fix overflow

This commit is contained in:
2022-04-02 16:27:50 +02:00
parent a103131163
commit c9b79e7339

2
main.c
View File

@@ -72,7 +72,7 @@ static void avr_init()
}
void send_info(void){
char msg[4];
char msg[6];
sprintf(msg, "%d", abzug_speed);
mqtt_pub(&mqtt_client, "/Filamentanlage/05_Abzug/state/abzug/speed", msg, strlen(msg));