Do you have some proof that bursts ever gets to be 7?
Do you have some proof that the while loop ever starts?
What is connected to the trigger pin? How? Do you have the required pullup or pulldown resistor, if whatever is connected is not holding the pin HIGH or LOW at all times?
What DO you want? It looks like you are trying to send some short pulses, then one long pulse, then short pulses again. Then, loop starts over, and sends the pulses again.
The pulses are on different pins. It isn't clear to me what that picture is trying to tell me.
That appears to be exactly what your sketch is written to do. The white line shows 300+ microsecond pulses on Pin 7. The red line shows that about mid-way through every set of 15 pulses there is a 100+ microsecond pulse on Pin 8. How is this different from what you wanted your sketch to do?
Seems like OP has switched delays for long and short pulses. The short pulses are longer than the long ones and this may trick OP into thinking that the if statement is never invoked.