>>858
if (LEDflg == 0) LEDflg = 1 ;
else LEDflg = 0 ;

LEDflg ^= 1;
と同じこと。
排他論理和を調べてみてください。

なので、これでも同じはず。
https://pastebin.com/raw/7sxbC1Ex