Add mod function to make sure heading stays between 0-360 when calculating heading differences with magnetic declination and bearing to stop.  Force compass redraw when new location is calculated.