I am using a half-duplex buffer chip which is used to control servos.
Before data is sent high the direction pin is set high and once data is sent, the pin is set low again.
What occurs here is that the command isn’t fully sent, so nothing happens.
Changing this to:
Is however, successful in sending data.
From this, it seems that Serial1.flush() is still not functioning correctly.