Fixed endless loop in magnetic field do sample. Removed old location ala...

...rm with the periodicPollingAlarm
@Smuldr could you QA?