{"action":"created","comment":{"url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments/30286135","id":30286135,"diff_hunk":"@@ -348,19 +349,12 @@ void handleSmartPortTelemetry(void)\n                     // the MSB of the sent uint32_t helps FrSky keep track\n                     // the even/odd bit of our counter helps us keep track\n                     if (smartPortIdCnt & 1) {\n-                        tmpui = tmpi = GPS_coord[LON];\n-                        if (tmpi < 0) {\n-                            tmpui = -tmpi;\n-                            tmpui |= 0x40000000;\n-                        }\n-                        tmpui |= 0x80000000;\n+                        tmpui = (abs(GPS_coord[LON] / 100) * 6) | 0x80000000;\n+                        if (GPS_coord[LON] < 0) tmpui |= 0xC0000000;","path":"src/main/telemetry/smartport.c","position":19,"original_position":19,"commit_id":"1c73cb4de3f1eb869a06e431ac45ce0c630678b6","original_commit_id":"1c73cb4de3f1eb869a06e431ac45ce0c630678b6","user":{"login":"Netsplits","id":12117594,"avatar_url":"https://avatars.githubusercontent.com/u/12117594?v=3","gravatar_id":"","url":"https://api.github.com/users/Netsplits","html_url":"https://github.com/Netsplits","followers_url":"https://api.github.com/users/Netsplits/followers","following_url":"https://api.github.com/users/Netsplits/following{/other_user}","gists_url":"https://api.github.com/users/Netsplits/gists{/gist_id}","starred_url":"https://api.github.com/users/Netsplits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netsplits/subscriptions","organizations_url":"https://api.github.com/users/Netsplits/orgs","repos_url":"https://api.github.com/users/Netsplits/repos","events_url":"https://api.github.com/users/Netsplits/events{/privacy}","received_events_url":"https://api.github.com/users/Netsplits/received_events","type":"User","site_admin":false},"body":"Now I see what you mean. Let's use 0x40000000, at the end does the same as you say and only sets the necessary bit.","created_at":"2015-05-13T23:25:33Z","updated_at":"2015-05-13T23:25:33Z","html_url":"https://github.com/cleanflight/cleanflight/pull/888#discussion_r30286135","pull_request_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888","_links":{"self":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments/30286135"},"html":{"href":"https://github.com/cleanflight/cleanflight/pull/888#discussion_r30286135"},"pull_request":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888"}}},"pull_request":{"url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888","id":35276957,"html_url":"https://github.com/cleanflight/cleanflight/pull/888","diff_url":"https://github.com/cleanflight/cleanflight/pull/888.diff","patch_url":"https://github.com/cleanflight/cleanflight/pull/888.patch","issue_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/888","number":888,"state":"open","locked":false,"title":"Smartport telemetry pull request for issues #818 and #877","user":{"login":"Netsplits","id":12117594,"avatar_url":"https://avatars.githubusercontent.com/u/12117594?v=3","gravatar_id":"","url":"https://api.github.com/users/Netsplits","html_url":"https://github.com/Netsplits","followers_url":"https://api.github.com/users/Netsplits/followers","following_url":"https://api.github.com/users/Netsplits/following{/other_user}","gists_url":"https://api.github.com/users/Netsplits/gists{/gist_id}","starred_url":"https://api.github.com/users/Netsplits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netsplits/subscriptions","organizations_url":"https://api.github.com/users/Netsplits/orgs","repos_url":"https://api.github.com/users/Netsplits/repos","events_url":"https://api.github.com/users/Netsplits/events{/privacy}","received_events_url":"https://api.github.com/users/Netsplits/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-12T22:20:03Z","updated_at":"2015-05-13T23:25:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc086c25407e30a10bcd39dac4d65943e59be661","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888/commits","review_comments_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888/comments","review_comment_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/888/comments","statuses_url":"https://api.github.com/repos/cleanflight/cleanflight/statuses/1c73cb4de3f1eb869a06e431ac45ce0c630678b6","head":{"label":"Netsplits:sport-telemetry","ref":"sport-telemetry","sha":"1c73cb4de3f1eb869a06e431ac45ce0c630678b6","user":{"login":"Netsplits","id":12117594,"avatar_url":"https://avatars.githubusercontent.com/u/12117594?v=3","gravatar_id":"","url":"https://api.github.com/users/Netsplits","html_url":"https://github.com/Netsplits","followers_url":"https://api.github.com/users/Netsplits/followers","following_url":"https://api.github.com/users/Netsplits/following{/other_user}","gists_url":"https://api.github.com/users/Netsplits/gists{/gist_id}","starred_url":"https://api.github.com/users/Netsplits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netsplits/subscriptions","organizations_url":"https://api.github.com/users/Netsplits/orgs","repos_url":"https://api.github.com/users/Netsplits/repos","events_url":"https://api.github.com/users/Netsplits/events{/privacy}","received_events_url":"https://api.github.com/users/Netsplits/received_events","type":"User","site_admin":false},"repo":{"id":35246957,"name":"cleanflight","full_name":"Netsplits/cleanflight","owner":{"login":"Netsplits","id":12117594,"avatar_url":"https://avatars.githubusercontent.com/u/12117594?v=3","gravatar_id":"","url":"https://api.github.com/users/Netsplits","html_url":"https://github.com/Netsplits","followers_url":"https://api.github.com/users/Netsplits/followers","following_url":"https://api.github.com/users/Netsplits/following{/other_user}","gists_url":"https://api.github.com/users/Netsplits/gists{/gist_id}","starred_url":"https://api.github.com/users/Netsplits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netsplits/subscriptions","organizations_url":"https://api.github.com/users/Netsplits/orgs","repos_url":"https://api.github.com/users/Netsplits/repos","events_url":"https://api.github.com/users/Netsplits/events{/privacy}","received_events_url":"https://api.github.com/users/Netsplits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Netsplits/cleanflight","description":"Clean-code version of the baseflight flight controller firmware","fork":true,"url":"https://api.github.com/repos/Netsplits/cleanflight","forks_url":"https://api.github.com/repos/Netsplits/cleanflight/forks","keys_url":"https://api.github.com/repos/Netsplits/cleanflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netsplits/cleanflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netsplits/cleanflight/teams","hooks_url":"https://api.github.com/repos/Netsplits/cleanflight/hooks","issue_events_url":"https://api.github.com/repos/Netsplits/cleanflight/issues/events{/number}","events_url":"https://api.github.com/repos/Netsplits/cleanflight/events","assignees_url":"https://api.github.com/repos/Netsplits/cleanflight/assignees{/user}","branches_url":"https://api.github.com/repos/Netsplits/cleanflight/branches{/branch}","tags_url":"https://api.github.com/repos/Netsplits/cleanflight/tags","blobs_url":"https://api.github.com/repos/Netsplits/cleanflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netsplits/cleanflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netsplits/cleanflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netsplits/cleanflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netsplits/cleanflight/statuses/{sha}","languages_url":"https://api.github.com/repos/Netsplits/cleanflight/languages","stargazers_url":"https://api.github.com/repos/Netsplits/cleanflight/stargazers","contributors_url":"https://api.github.com/repos/Netsplits/cleanflight/contributors","subscribers_url":"https://api.github.com/repos/Netsplits/cleanflight/subscribers","subscription_url":"https://api.github.com/repos/Netsplits/cleanflight/subscription","commits_url":"https://api.github.com/repos/Netsplits/cleanflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netsplits/cleanflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netsplits/cleanflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netsplits/cleanflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netsplits/cleanflight/contents/{+path}","compare_url":"https://api.github.com/repos/Netsplits/cleanflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netsplits/cleanflight/merges","archive_url":"https://api.github.com/repos/Netsplits/cleanflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netsplits/cleanflight/downloads","issues_url":"https://api.github.com/repos/Netsplits/cleanflight/issues{/number}","pulls_url":"https://api.github.com/repos/Netsplits/cleanflight/pulls{/number}","milestones_url":"https://api.github.com/repos/Netsplits/cleanflight/milestones{/number}","notifications_url":"https://api.github.com/repos/Netsplits/cleanflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netsplits/cleanflight/labels{/name}","releases_url":"https://api.github.com/repos/Netsplits/cleanflight/releases{/id}","created_at":"2015-05-07T22:36:22Z","updated_at":"2015-05-07T22:36:25Z","pushed_at":"2015-05-12T22:18:50Z","git_url":"git://github.com/Netsplits/cleanflight.git","ssh_url":"git@github.com:Netsplits/cleanflight.git","clone_url":"https://github.com/Netsplits/cleanflight.git","svn_url":"https://github.com/Netsplits/cleanflight","homepage":"http://cleanflight.com","size":32046,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cleanflight:master","ref":"master","sha":"e6a40d732d8f303599b56f2848f3d262d3a7218b","user":{"login":"cleanflight","id":8776523,"avatar_url":"https://avatars.githubusercontent.com/u/8776523?v=3","gravatar_id":"","url":"https://api.github.com/users/cleanflight","html_url":"https://github.com/cleanflight","followers_url":"https://api.github.com/users/cleanflight/followers","following_url":"https://api.github.com/users/cleanflight/following{/other_user}","gists_url":"https://api.github.com/users/cleanflight/gists{/gist_id}","starred_url":"https://api.github.com/users/cleanflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleanflight/subscriptions","organizations_url":"https://api.github.com/users/cleanflight/orgs","repos_url":"https://api.github.com/users/cleanflight/repos","events_url":"https://api.github.com/users/cleanflight/events{/privacy}","received_events_url":"https://api.github.com/users/cleanflight/received_events","type":"Organization","site_admin":false},"repo":{"id":9066347,"name":"cleanflight","full_name":"cleanflight/cleanflight","owner":{"login":"cleanflight","id":8776523,"avatar_url":"https://avatars.githubusercontent.com/u/8776523?v=3","gravatar_id":"","url":"https://api.github.com/users/cleanflight","html_url":"https://github.com/cleanflight","followers_url":"https://api.github.com/users/cleanflight/followers","following_url":"https://api.github.com/users/cleanflight/following{/other_user}","gists_url":"https://api.github.com/users/cleanflight/gists{/gist_id}","starred_url":"https://api.github.com/users/cleanflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleanflight/subscriptions","organizations_url":"https://api.github.com/users/cleanflight/orgs","repos_url":"https://api.github.com/users/cleanflight/repos","events_url":"https://api.github.com/users/cleanflight/events{/privacy}","received_events_url":"https://api.github.com/users/cleanflight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cleanflight/cleanflight","description":"Clean-code version of the baseflight flight controller firmware","fork":false,"url":"https://api.github.com/repos/cleanflight/cleanflight","forks_url":"https://api.github.com/repos/cleanflight/cleanflight/forks","keys_url":"https://api.github.com/repos/cleanflight/cleanflight/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cleanflight/cleanflight/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cleanflight/cleanflight/teams","hooks_url":"https://api.github.com/repos/cleanflight/cleanflight/hooks","issue_events_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/events{/number}","events_url":"https://api.github.com/repos/cleanflight/cleanflight/events","assignees_url":"https://api.github.com/repos/cleanflight/cleanflight/assignees{/user}","branches_url":"https://api.github.com/repos/cleanflight/cleanflight/branches{/branch}","tags_url":"https://api.github.com/repos/cleanflight/cleanflight/tags","blobs_url":"https://api.github.com/repos/cleanflight/cleanflight/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cleanflight/cleanflight/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cleanflight/cleanflight/git/refs{/sha}","trees_url":"https://api.github.com/repos/cleanflight/cleanflight/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cleanflight/cleanflight/statuses/{sha}","languages_url":"https://api.github.com/repos/cleanflight/cleanflight/languages","stargazers_url":"https://api.github.com/repos/cleanflight/cleanflight/stargazers","contributors_url":"https://api.github.com/repos/cleanflight/cleanflight/contributors","subscribers_url":"https://api.github.com/repos/cleanflight/cleanflight/subscribers","subscription_url":"https://api.github.com/repos/cleanflight/cleanflight/subscription","commits_url":"https://api.github.com/repos/cleanflight/cleanflight/commits{/sha}","git_commits_url":"https://api.github.com/repos/cleanflight/cleanflight/git/commits{/sha}","comments_url":"https://api.github.com/repos/cleanflight/cleanflight/comments{/number}","issue_comment_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/comments{/number}","contents_url":"https://api.github.com/repos/cleanflight/cleanflight/contents/{+path}","compare_url":"https://api.github.com/repos/cleanflight/cleanflight/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cleanflight/cleanflight/merges","archive_url":"https://api.github.com/repos/cleanflight/cleanflight/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cleanflight/cleanflight/downloads","issues_url":"https://api.github.com/repos/cleanflight/cleanflight/issues{/number}","pulls_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls{/number}","milestones_url":"https://api.github.com/repos/cleanflight/cleanflight/milestones{/number}","notifications_url":"https://api.github.com/repos/cleanflight/cleanflight/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cleanflight/cleanflight/labels{/name}","releases_url":"https://api.github.com/repos/cleanflight/cleanflight/releases{/id}","created_at":"2013-03-27T23:49:19Z","updated_at":"2015-05-13T15:58:27Z","pushed_at":"2015-05-13T22:59:02Z","git_url":"git://github.com/cleanflight/cleanflight.git","ssh_url":"git@github.com:cleanflight/cleanflight.git","clone_url":"https://github.com/cleanflight/cleanflight.git","svn_url":"https://github.com/cleanflight/cleanflight","homepage":"http://cleanflight.com","size":60080,"stargazers_count":316,"watchers_count":316,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":242,"mirror_url":null,"open_issues_count":240,"forks":242,"open_issues":240,"watchers":316,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888"},"html":{"href":"https://github.com/cleanflight/cleanflight/pull/888"},"issue":{"href":"https://api.github.com/repos/cleanflight/cleanflight/issues/888"},"comments":{"href":"https://api.github.com/repos/cleanflight/cleanflight/issues/888/comments"},"review_comments":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888/comments"},"review_comment":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/888/commits"},"statuses":{"href":"https://api.github.com/repos/cleanflight/cleanflight/statuses/1c73cb4de3f1eb869a06e431ac45ce0c630678b6"}}}}