fix #2741: some devices do not have a magnetic field sensor
Merge branch 'fix-2741' into release