@flyingdomotic I agree that references to relevant part of the datasheet for each delay would be good. Now they are just magic numbers. Without such references, understanding, reviewing, extending and maintaining the code is extremely hard. For [solved], edit your first post and change the headline (you might need to scroll up to see the headline if you are on mobile)