Hallo Svenja,

probiers mal mit Klammern hinter "PollSwitch"
Also:
t1=PollSwitch();
t2=PollSwitch();

statt:
t1=PollSwitch;
t2=PollSwitch;