giuliomoro Can you try and reduce the usleep until you figure out what is the minimum value that still makes it work reliably fine?