{"action":"created","comment":{"url":"https://api.github.com/repos/PX4/Firmware/pulls/comments/43224606","id":43224606,"diff_hunk":"@@ -296,16 +296,14 @@ SF0X::init()\n \n \t\t_class_instance = register_class_devname(RANGE_FINDER_BASE_DEVICE_PATH);\n \n-\t\tif (_class_instance == CLASS_DEVICE_PRIMARY) {\n-\t\t\t/* get a publish handle on the range finder topic */\n-\t\t\tstruct distance_sensor_s ds_report = {};\n+\t\t/* get a publish handle on the range finder topic */\n+\t\tstruct distance_sensor_s ds_report;","path":"src/drivers/sf0x/sf0x.cpp","position":8,"original_position":8,"commit_id":"bc95972e90f02b294795c8cca1b0754efe25d889","original_commit_id":"bc95972e90f02b294795c8cca1b0754efe25d889","user":{"login":"LorenzMeier","id":1208119,"avatar_url":"https://avatars.githubusercontent.com/u/1208119?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenzMeier","html_url":"https://github.com/LorenzMeier","followers_url":"https://api.github.com/users/LorenzMeier/followers","following_url":"https://api.github.com/users/LorenzMeier/following{/other_user}","gists_url":"https://api.github.com/users/LorenzMeier/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzMeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzMeier/subscriptions","organizations_url":"https://api.github.com/users/LorenzMeier/orgs","repos_url":"https://api.github.com/users/LorenzMeier/repos","events_url":"https://api.github.com/users/LorenzMeier/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzMeier/received_events","type":"User","site_admin":false},"body":"Missing zero initialiser braces.","created_at":"2015-10-28T07:39:18Z","updated_at":"2015-10-28T07:39:18Z","html_url":"https://github.com/PX4/Firmware/pull/3085#discussion_r43224606","pull_request_url":"https://api.github.com/repos/PX4/Firmware/pulls/3085","_links":{"self":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/comments/43224606"},"html":{"href":"https://github.com/PX4/Firmware/pull/3085#discussion_r43224606"},"pull_request":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/3085"}}},"pull_request":{"url":"https://api.github.com/repos/PX4/Firmware/pulls/3085","id":48960926,"html_url":"https://github.com/PX4/Firmware/pull/3085","diff_url":"https://github.com/PX4/Firmware/pull/3085.diff","patch_url":"https://github.com/PX4/Firmware/pull/3085.patch","issue_url":"https://api.github.com/repos/PX4/Firmware/issues/3085","number":3085,"state":"open","locked":false,"title":"Fix ranger multi-advertise","user":{"login":"mhkabir","id":5557676,"avatar_url":"https://avatars.githubusercontent.com/u/5557676?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkabir","html_url":"https://github.com/mhkabir","followers_url":"https://api.github.com/users/mhkabir/followers","following_url":"https://api.github.com/users/mhkabir/following{/other_user}","gists_url":"https://api.github.com/users/mhkabir/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkabir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkabir/subscriptions","organizations_url":"https://api.github.com/users/mhkabir/orgs","repos_url":"https://api.github.com/users/mhkabir/repos","events_url":"https://api.github.com/users/mhkabir/events{/privacy}","received_events_url":"https://api.github.com/users/mhkabir/received_events","type":"User","site_admin":false},"body":"This fixes #2480. \r\n\r\nI tested this with a LL40LS + PX4Flow sonar module.","created_at":"2015-10-28T03:26:56Z","updated_at":"2015-10-28T07:39:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da4d7ce5be16ff3640aff87aee50f1e60fc7115c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PX4/Firmware/pulls/3085/commits","review_comments_url":"https://api.github.com/repos/PX4/Firmware/pulls/3085/comments","review_comment_url":"https://api.github.com/repos/PX4/Firmware/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PX4/Firmware/issues/3085/comments","statuses_url":"https://api.github.com/repos/PX4/Firmware/statuses/bc95972e90f02b294795c8cca1b0754efe25d889","head":{"label":"mhkabir:ranger_multi","ref":"ranger_multi","sha":"bc95972e90f02b294795c8cca1b0754efe25d889","user":{"login":"mhkabir","id":5557676,"avatar_url":"https://avatars.githubusercontent.com/u/5557676?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkabir","html_url":"https://github.com/mhkabir","followers_url":"https://api.github.com/users/mhkabir/followers","following_url":"https://api.github.com/users/mhkabir/following{/other_user}","gists_url":"https://api.github.com/users/mhkabir/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkabir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkabir/subscriptions","organizations_url":"https://api.github.com/users/mhkabir/orgs","repos_url":"https://api.github.com/users/mhkabir/repos","events_url":"https://api.github.com/users/mhkabir/events{/privacy}","received_events_url":"https://api.github.com/users/mhkabir/received_events","type":"User","site_admin":false},"repo":{"id":22340723,"name":"Firmware","full_name":"mhkabir/Firmware","owner":{"login":"mhkabir","id":5557676,"avatar_url":"https://avatars.githubusercontent.com/u/5557676?v=3","gravatar_id":"","url":"https://api.github.com/users/mhkabir","html_url":"https://github.com/mhkabir","followers_url":"https://api.github.com/users/mhkabir/followers","following_url":"https://api.github.com/users/mhkabir/following{/other_user}","gists_url":"https://api.github.com/users/mhkabir/gists{/gist_id}","starred_url":"https://api.github.com/users/mhkabir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhkabir/subscriptions","organizations_url":"https://api.github.com/users/mhkabir/orgs","repos_url":"https://api.github.com/users/mhkabir/repos","events_url":"https://api.github.com/users/mhkabir/events{/privacy}","received_events_url":"https://api.github.com/users/mhkabir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhkabir/Firmware","description":"PX4 Firmware for PX4FMU autopilot and PX4IO servo / failsafe board","fork":true,"url":"https://api.github.com/repos/mhkabir/Firmware","forks_url":"https://api.github.com/repos/mhkabir/Firmware/forks","keys_url":"https://api.github.com/repos/mhkabir/Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhkabir/Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhkabir/Firmware/teams","hooks_url":"https://api.github.com/repos/mhkabir/Firmware/hooks","issue_events_url":"https://api.github.com/repos/mhkabir/Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/mhkabir/Firmware/events","assignees_url":"https://api.github.com/repos/mhkabir/Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/mhkabir/Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/mhkabir/Firmware/tags","blobs_url":"https://api.github.com/repos/mhkabir/Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhkabir/Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhkabir/Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhkabir/Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhkabir/Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/mhkabir/Firmware/languages","stargazers_url":"https://api.github.com/repos/mhkabir/Firmware/stargazers","contributors_url":"https://api.github.com/repos/mhkabir/Firmware/contributors","subscribers_url":"https://api.github.com/repos/mhkabir/Firmware/subscribers","subscription_url":"https://api.github.com/repos/mhkabir/Firmware/subscription","commits_url":"https://api.github.com/repos/mhkabir/Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhkabir/Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhkabir/Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhkabir/Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhkabir/Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/mhkabir/Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhkabir/Firmware/merges","archive_url":"https://api.github.com/repos/mhkabir/Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhkabir/Firmware/downloads","issues_url":"https://api.github.com/repos/mhkabir/Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/mhkabir/Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/mhkabir/Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/mhkabir/Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhkabir/Firmware/labels{/name}","releases_url":"https://api.github.com/repos/mhkabir/Firmware/releases{/id}","created_at":"2014-07-28T11:48:16Z","updated_at":"2015-10-16T17:21:27Z","pushed_at":"2015-10-28T03:47:01Z","git_url":"git://github.com/mhkabir/Firmware.git","ssh_url":"git@github.com:mhkabir/Firmware.git","clone_url":"https://github.com/mhkabir/Firmware.git","svn_url":"https://github.com/mhkabir/Firmware","homepage":"https://pixhawk.ethz.ch/px4/","size":78590,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"PX4:master","ref":"master","sha":"8ba0c003db542ef33dc84f73cbec53d384591b90","user":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"repo":{"id":5298790,"name":"Firmware","full_name":"PX4/Firmware","owner":{"login":"PX4","id":2096014,"avatar_url":"https://avatars.githubusercontent.com/u/2096014?v=3","gravatar_id":"","url":"https://api.github.com/users/PX4","html_url":"https://github.com/PX4","followers_url":"https://api.github.com/users/PX4/followers","following_url":"https://api.github.com/users/PX4/following{/other_user}","gists_url":"https://api.github.com/users/PX4/gists{/gist_id}","starred_url":"https://api.github.com/users/PX4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PX4/subscriptions","organizations_url":"https://api.github.com/users/PX4/orgs","repos_url":"https://api.github.com/users/PX4/repos","events_url":"https://api.github.com/users/PX4/events{/privacy}","received_events_url":"https://api.github.com/users/PX4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PX4/Firmware","description":"PX4 Firmware for Pixhawk Hardware","fork":false,"url":"https://api.github.com/repos/PX4/Firmware","forks_url":"https://api.github.com/repos/PX4/Firmware/forks","keys_url":"https://api.github.com/repos/PX4/Firmware/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PX4/Firmware/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PX4/Firmware/teams","hooks_url":"https://api.github.com/repos/PX4/Firmware/hooks","issue_events_url":"https://api.github.com/repos/PX4/Firmware/issues/events{/number}","events_url":"https://api.github.com/repos/PX4/Firmware/events","assignees_url":"https://api.github.com/repos/PX4/Firmware/assignees{/user}","branches_url":"https://api.github.com/repos/PX4/Firmware/branches{/branch}","tags_url":"https://api.github.com/repos/PX4/Firmware/tags","blobs_url":"https://api.github.com/repos/PX4/Firmware/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PX4/Firmware/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PX4/Firmware/git/refs{/sha}","trees_url":"https://api.github.com/repos/PX4/Firmware/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PX4/Firmware/statuses/{sha}","languages_url":"https://api.github.com/repos/PX4/Firmware/languages","stargazers_url":"https://api.github.com/repos/PX4/Firmware/stargazers","contributors_url":"https://api.github.com/repos/PX4/Firmware/contributors","subscribers_url":"https://api.github.com/repos/PX4/Firmware/subscribers","subscription_url":"https://api.github.com/repos/PX4/Firmware/subscription","commits_url":"https://api.github.com/repos/PX4/Firmware/commits{/sha}","git_commits_url":"https://api.github.com/repos/PX4/Firmware/git/commits{/sha}","comments_url":"https://api.github.com/repos/PX4/Firmware/comments{/number}","issue_comment_url":"https://api.github.com/repos/PX4/Firmware/issues/comments{/number}","contents_url":"https://api.github.com/repos/PX4/Firmware/contents/{+path}","compare_url":"https://api.github.com/repos/PX4/Firmware/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PX4/Firmware/merges","archive_url":"https://api.github.com/repos/PX4/Firmware/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PX4/Firmware/downloads","issues_url":"https://api.github.com/repos/PX4/Firmware/issues{/number}","pulls_url":"https://api.github.com/repos/PX4/Firmware/pulls{/number}","milestones_url":"https://api.github.com/repos/PX4/Firmware/milestones{/number}","notifications_url":"https://api.github.com/repos/PX4/Firmware/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PX4/Firmware/labels{/name}","releases_url":"https://api.github.com/repos/PX4/Firmware/releases{/id}","created_at":"2012-08-04T21:19:36Z","updated_at":"2015-10-27T06:23:56Z","pushed_at":"2015-10-28T07:16:44Z","git_url":"git://github.com/PX4/Firmware.git","ssh_url":"git@github.com:PX4/Firmware.git","clone_url":"https://github.com/PX4/Firmware.git","svn_url":"https://github.com/PX4/Firmware","homepage":"http://px4.io","size":179102,"stargazers_count":432,"watchers_count":432,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1575,"mirror_url":null,"open_issues_count":277,"forks":1575,"open_issues":277,"watchers":432,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/3085"},"html":{"href":"https://github.com/PX4/Firmware/pull/3085"},"issue":{"href":"https://api.github.com/repos/PX4/Firmware/issues/3085"},"comments":{"href":"https://api.github.com/repos/PX4/Firmware/issues/3085/comments"},"review_comments":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/3085/comments"},"review_comment":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PX4/Firmware/pulls/3085/commits"},"statuses":{"href":"https://api.github.com/repos/PX4/Firmware/statuses/bc95972e90f02b294795c8cca1b0754efe25d889"}}}}