Cant figure out what Im doing wrong here

A picture is worth . . .

I built a very simple input capture chronograph as a flash trigger, using not much more than a couple of photodiodes and a resistor (plus illuminator LEDs and optotriac).