Mystery of escaping a while loop?

Yes, I was hoping that pulse_complete= true; would keep it inside the while loop. when the Serial is printing 1 it is confirming that it is true however it still manages to escape the loop as if it was false. which it isnt.