fixed broken conditional
Merge pull request #837 from YaleSTC/832_green_flashes

832 fixed broken flashes