{"action":"created","comment":{"url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments/57545939","id":57545939,"diff_hunk":"@@ -130,6 +132,51 @@ uint8_t spektrumFrameStatus(void)\n \n     rcFrameComplete = false;\n \n+\t//Check for bind type in the first packet after startup. This is provided in the second byte in a data packet from the internal remote.\n+    //This packet wont contain any data if the remote was bound using a separate receiver (bound as external remote)\n+    if(!initialPacket){\n+\n+        switch (spekFrame[1]){\n+            case 0xb2:       //11MS 2048 DSMX\n+                rxConfig->serialrx_provider = SERIALRX_SPEKTRUM2048;\n+                saveConfigAndNotify();","path":"src/main/rx/spektrum.c","position":29,"original_position":29,"commit_id":"5f2da809480c42bcb7f599b0127e0e5bc5dd1a2a","original_commit_id":"5f2da809480c42bcb7f599b0127e0e5bc5dd1a2a","user":{"login":"MJ666","id":8107952,"avatar_url":"https://avatars.githubusercontent.com/u/8107952?v=3","gravatar_id":"","url":"https://api.github.com/users/MJ666","html_url":"https://github.com/MJ666","followers_url":"https://api.github.com/users/MJ666/followers","following_url":"https://api.github.com/users/MJ666/following{/other_user}","gists_url":"https://api.github.com/users/MJ666/gists{/gist_id}","starred_url":"https://api.github.com/users/MJ666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MJ666/subscriptions","organizations_url":"https://api.github.com/users/MJ666/orgs","repos_url":"https://api.github.com/users/MJ666/repos","events_url":"https://api.github.com/users/MJ666/events{/privacy}","received_events_url":"https://api.github.com/users/MJ666/received_events","type":"User","site_admin":false},"body":"I think save this one's if it is not properly set is not a problem. You can check the actual setting and update if needed. This will only write once or after an RX protocoll change.","created_at":"2016-03-28T05:31:13Z","updated_at":"2016-03-28T05:31:13Z","html_url":"https://github.com/cleanflight/cleanflight/pull/1985#discussion_r57545939","pull_request_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985","_links":{"self":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments/57545939"},"html":{"href":"https://github.com/cleanflight/cleanflight/pull/1985#discussion_r57545939"},"pull_request":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985"}}},"pull_request":{"url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985","id":64196886,"html_url":"https://github.com/cleanflight/cleanflight/pull/1985","diff_url":"https://github.com/cleanflight/cleanflight/pull/1985.diff","patch_url":"https://github.com/cleanflight/cleanflight/pull/1985.patch","issue_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/1985","number":1985,"state":"open","locked":false,"title":"Fixes to Spektrum serial remote receiver implementation","user":{"login":"SpektrumFPV","id":17993038,"avatar_url":"https://avatars.githubusercontent.com/u/17993038?v=3","gravatar_id":"","url":"https://api.github.com/users/SpektrumFPV","html_url":"https://github.com/SpektrumFPV","followers_url":"https://api.github.com/users/SpektrumFPV/followers","following_url":"https://api.github.com/users/SpektrumFPV/following{/other_user}","gists_url":"https://api.github.com/users/SpektrumFPV/gists{/gist_id}","starred_url":"https://api.github.com/users/SpektrumFPV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpektrumFPV/subscriptions","organizations_url":"https://api.github.com/users/SpektrumFPV/orgs","repos_url":"https://api.github.com/users/SpektrumFPV/repos","events_url":"https://api.github.com/users/SpektrumFPV/events{/privacy}","received_events_url":"https://api.github.com/users/SpektrumFPV/received_events","type":"User","site_admin":false},"body":"These are some fixes and additions we've made to the current implementation of Spektrum serial receivers.\r\n\r\nData scaling modified to match intended PWM channel value. This will provide consistency in channel output values between spektrum receivers using serial, PPM, or PWM to send channel data to the flight controller. This should also an increase resolution and will  cause an increase in travel (People currently using 150% travel on cleanflight with a spektrum transmitter should reduce to 125%).\r\n\r\nAntenna fade data is now read from remote receivers and is stored in variable \"frameLoss\". Currently there is nothing being done with this data, but it can be made available for things such as telemetry.\r\n\r\nBind type is now read from remote receivers if bound as an \"internal\" receiver (bound through either autobind or bound from flight controller). If so, the bind type is read and the resolution setting will automatically be set to 1024 or 2048.","created_at":"2016-03-25T19:16:05Z","updated_at":"2016-03-28T05:31:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06315a46eda1ccb0a186dab20f6a79cc3296279f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985/commits","review_comments_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985/comments","review_comment_url":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cleanflight/cleanflight/issues/1985/comments","statuses_url":"https://api.github.com/repos/cleanflight/cleanflight/statuses/5f2da809480c42bcb7f599b0127e0e5bc5dd1a2a","head":{"label":"SpektrumFPV:ReceiverChanges","ref":"ReceiverChanges","sha":"5f2da809480c42bcb7f599b0127e0e5bc5dd1a2a","user":{"login":"SpektrumFPV","id":17993038,"avatar_url":"https://avatars.githubusercontent.com/u/17993038?v=3","gravatar_id":"","url":"https://api.github.com/users/SpektrumFPV","html_url":"https://github.com/SpektrumFPV","followers_url":"https://api.github.com/users/SpektrumFPV/followers","following_url":"https://api.github.com/users/SpektrumFPV/following{/other_user}","gists_url":"https://api.github.com/users/SpektrumFPV/gists{/gist_id}","starred_url":"https://api.github.com/users/SpektrumFPV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpektrumFPV/subscriptions","organizations_url":"https://api.github.com/users/SpektrumFPV/orgs","repos_url":"https://api.github.com/users/SpektrumFPV/repos","events_url":"https://api.github.com/users/SpektrumFPV/events{/privacy}","received_events_url":"https://api.github.com/users/SpektrumFPV/received_events","type":"User","site_admin":false},"repo":{"id":54675942,"name":"cleanflightSPM","full_name":"SpektrumFPV/cleanflightSPM","owner":{"login":"SpektrumFPV","id":17993038,"avatar_url":"https://avatars.githubusercontent.com/u/17993038?v=3","gravatar_id":"","url":"https://api.github.com/users/SpektrumFPV","html_url":"https://github.com/SpektrumFPV","followers_url":"https://api.github.com/users/SpektrumFPV/followers","following_url":"https://api.github.com/users/SpektrumFPV/following{/other_user}","gists_url":"https://api.github.com/users/SpektrumFPV/gists{/gist_id}","starred_url":"https://api.github.com/users/SpektrumFPV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpektrumFPV/subscriptions","organizations_url":"https://api.github.com/users/SpektrumFPV/orgs","repos_url":"https://api.github.com/users/SpektrumFPV/repos","events_url":"https://api.github.com/users/SpektrumFPV/events{/privacy}","received_events_url":"https://api.github.com/users/SpektrumFPV/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpektrumFPV/cleanflightSPM","description":"Clean-code version of the baseflight flight controller firmware","fork":true,"url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM","forks_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/forks","keys_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/teams","hooks_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/hooks","issue_events_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/issues/events{/number}","events_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/events","assignees_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/assignees{/user}","branches_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/branches{/branch}","tags_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/tags","blobs_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/statuses/{sha}","languages_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/languages","stargazers_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/stargazers","contributors_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/contributors","subscribers_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/subscribers","subscription_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/subscription","commits_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/contents/{+path}","compare_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/merges","archive_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/downloads","issues_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/issues{/number}","pulls_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/pulls{/number}","milestones_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/milestones{/number}","notifications_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/labels{/name}","releases_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/releases{/id}","deployments_url":"https://api.github.com/repos/SpektrumFPV/cleanflightSPM/deployments","created_at":"2016-03-24T21:39:43Z","updated_at":"2016-03-25T15:06:51Z","pushed_at":"2016-03-25T19:02:33Z","git_url":"git://github.com/SpektrumFPV/cleanflightSPM.git","ssh_url":"git@github.com:SpektrumFPV/cleanflightSPM.git","clone_url":"https://github.com/SpektrumFPV/cleanflightSPM.git","svn_url":"https://github.com/SpektrumFPV/cleanflightSPM","homepage":"http://cleanflight.com","size":35427,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"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":"accb7d9ec0f21d3195f461dce171db880e08a28a","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}","deployments_url":"https://api.github.com/repos/cleanflight/cleanflight/deployments","created_at":"2013-03-27T23:49:19Z","updated_at":"2016-03-28T03:53:32Z","pushed_at":"2016-03-27T22:07:41Z","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":92687,"stargazers_count":969,"watchers_count":969,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":947,"mirror_url":null,"open_issues_count":487,"forks":947,"open_issues":487,"watchers":969,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985"},"html":{"href":"https://github.com/cleanflight/cleanflight/pull/1985"},"issue":{"href":"https://api.github.com/repos/cleanflight/cleanflight/issues/1985"},"comments":{"href":"https://api.github.com/repos/cleanflight/cleanflight/issues/1985/comments"},"review_comments":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985/comments"},"review_comment":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cleanflight/cleanflight/pulls/1985/commits"},"statuses":{"href":"https://api.github.com/repos/cleanflight/cleanflight/statuses/5f2da809480c42bcb7f599b0127e0e5bc5dd1a2a"}}}}