So vielleicht?

while (PollSwitch()==0 && PollSwitch()==0) {

StatusLED ist nach Init() immer grün.

Gruß

mic