Proper way to get compass heading

Thank you for confirming that swapping the statement order resolved the issue on your end, Dev. I’ve gone ahead and filed a report, so this issue should be addressed in a future release.