If you were over the line when it went off, then you're OK. Even if you get dinged you could make a case that you had to go through, or be hit by the car behind you.

It flashed twice because each vehicle is photographed twice, to show its action through the intersection.