Prevent the magnetometer from returning twice the same value in a row