Heading bug does not align with compass heading when HDG knob is pressed. Cessna 172 - G1000

Click on the center of the heading knob and the heading bug on the screen/gauge will jump to your current heading. This is known as heading “sync”.