How close did you bring the magnet? If you have a powerful magnet and you bring it really close, you actually magnetise the Puck and/or magnetometer, which knocks off the base reading.
There's nothing you can do about this - it would be the same in any device - even an old-school compass :)
edit: just to add the door example would generally work fine because of the distance between the magnet and Puck - but even if not you can just re-calibrate your zero and you'll be fine
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
How close did you bring the magnet? If you have a powerful magnet and you bring it really close, you actually magnetise the Puck and/or magnetometer, which knocks off the base reading.
There's nothing you can do about this - it would be the same in any device - even an old-school compass :)
edit: just to add the door example would generally work fine because of the distance between the magnet and Puck - but even if not you can just re-calibrate your zero and you'll be fine