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