{"action":"created","comment":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments/74963840","id":74963840,"diff_hunk":"@@ -426,6 +426,15 @@ SPIDeviceManager::get_device(const char *name)\n     return dev;\n }\n \n+uint8_t SPIDeviceManager::get_count() {\n+   return _n_device_desc;\n+}\n+\n+void SPIDeviceManager::get_device_name(const int ref, char *name)\n+{\n+    strcpy(name, _device[ref].name);","path":"libraries/AP_HAL_Linux/SPIDevice.cpp","position":10,"original_position":10,"commit_id":"d9cdef51d2e8ef35abe8ecbd0fe6be61ac99bdf6","original_commit_id":"d9cdef51d2e8ef35abe8ecbd0fe6be61ac99bdf6","user":{"login":"hiro2233","id":6075116,"avatar_url":"https://avatars.githubusercontent.com/u/6075116?v=3","gravatar_id":"","url":"https://api.github.com/users/hiro2233","html_url":"https://github.com/hiro2233","followers_url":"https://api.github.com/users/hiro2233/followers","following_url":"https://api.github.com/users/hiro2233/following{/other_user}","gists_url":"https://api.github.com/users/hiro2233/gists{/gist_id}","starred_url":"https://api.github.com/users/hiro2233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiro2233/subscriptions","organizations_url":"https://api.github.com/users/hiro2233/orgs","repos_url":"https://api.github.com/users/hiro2233/repos","events_url":"https://api.github.com/users/hiro2233/events{/privacy}","received_events_url":"https://api.github.com/users/hiro2233/received_events","type":"User","site_admin":false},"body":"Thanks for detailed explanation.\r\nThanks in advance.","created_at":"2016-08-16T15:56:04Z","updated_at":"2016-08-16T15:56:04Z","html_url":"https://github.com/ArduPilot/ardupilot/pull/4670#discussion_r74963840","pull_request_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670","_links":{"self":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments/74963840"},"html":{"href":"https://github.com/ArduPilot/ardupilot/pull/4670#discussion_r74963840"},"pull_request":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670"}}},"pull_request":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670","id":81437865,"html_url":"https://github.com/ArduPilot/ardupilot/pull/4670","diff_url":"https://github.com/ArduPilot/ardupilot/pull/4670.diff","patch_url":"https://github.com/ArduPilot/ardupilot/pull/4670.patch","issue_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4670","number":4670,"state":"open","locked":false,"title":"AP_HAL_Linux:SPIDevice: Added functions for spi device table reference manipulation","user":{"login":"hiro2233","id":6075116,"avatar_url":"https://avatars.githubusercontent.com/u/6075116?v=3","gravatar_id":"","url":"https://api.github.com/users/hiro2233","html_url":"https://github.com/hiro2233","followers_url":"https://api.github.com/users/hiro2233/followers","following_url":"https://api.github.com/users/hiro2233/following{/other_user}","gists_url":"https://api.github.com/users/hiro2233/gists{/gist_id}","starred_url":"https://api.github.com/users/hiro2233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiro2233/subscriptions","organizations_url":"https://api.github.com/users/hiro2233/orgs","repos_url":"https://api.github.com/users/hiro2233/repos","events_url":"https://api.github.com/users/hiro2233/events{/privacy}","received_events_url":"https://api.github.com/users/hiro2233/received_events","type":"User","site_admin":false},"body":"Two functions added, tested with URUS.\r\n\r\n/* Return spi count number table. */\r\nget_count();\r\n\r\n/* Get spi device name with @ref */\r\nget_device_name(const int ref, char *name);","created_at":"2016-08-16T09:10:24Z","updated_at":"2016-08-16T15:56:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"631b77e2d8699ae06a3a43eb274e561f4462a968","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670/commits","review_comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670/comments","review_comment_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4670/comments","statuses_url":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/d9cdef51d2e8ef35abe8ecbd0fe6be61ac99bdf6","head":{"label":"hiro2233:master2","ref":"master2","sha":"d9cdef51d2e8ef35abe8ecbd0fe6be61ac99bdf6","user":{"login":"hiro2233","id":6075116,"avatar_url":"https://avatars.githubusercontent.com/u/6075116?v=3","gravatar_id":"","url":"https://api.github.com/users/hiro2233","html_url":"https://github.com/hiro2233","followers_url":"https://api.github.com/users/hiro2233/followers","following_url":"https://api.github.com/users/hiro2233/following{/other_user}","gists_url":"https://api.github.com/users/hiro2233/gists{/gist_id}","starred_url":"https://api.github.com/users/hiro2233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiro2233/subscriptions","organizations_url":"https://api.github.com/users/hiro2233/orgs","repos_url":"https://api.github.com/users/hiro2233/repos","events_url":"https://api.github.com/users/hiro2233/events{/privacy}","received_events_url":"https://api.github.com/users/hiro2233/received_events","type":"User","site_admin":false},"repo":{"id":49313185,"name":"URUS8","full_name":"hiro2233/URUS8","owner":{"login":"hiro2233","id":6075116,"avatar_url":"https://avatars.githubusercontent.com/u/6075116?v=3","gravatar_id":"","url":"https://api.github.com/users/hiro2233","html_url":"https://github.com/hiro2233","followers_url":"https://api.github.com/users/hiro2233/followers","following_url":"https://api.github.com/users/hiro2233/following{/other_user}","gists_url":"https://api.github.com/users/hiro2233/gists{/gist_id}","starred_url":"https://api.github.com/users/hiro2233/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiro2233/subscriptions","organizations_url":"https://api.github.com/users/hiro2233/orgs","repos_url":"https://api.github.com/users/hiro2233/repos","events_url":"https://api.github.com/users/hiro2233/events{/privacy}","received_events_url":"https://api.github.com/users/hiro2233/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hiro2233/URUS8","description":"Universal Robotics Unmanned System (URUS). Base project was forked from ArduPilot repo branch","fork":true,"url":"https://api.github.com/repos/hiro2233/URUS8","forks_url":"https://api.github.com/repos/hiro2233/URUS8/forks","keys_url":"https://api.github.com/repos/hiro2233/URUS8/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hiro2233/URUS8/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hiro2233/URUS8/teams","hooks_url":"https://api.github.com/repos/hiro2233/URUS8/hooks","issue_events_url":"https://api.github.com/repos/hiro2233/URUS8/issues/events{/number}","events_url":"https://api.github.com/repos/hiro2233/URUS8/events","assignees_url":"https://api.github.com/repos/hiro2233/URUS8/assignees{/user}","branches_url":"https://api.github.com/repos/hiro2233/URUS8/branches{/branch}","tags_url":"https://api.github.com/repos/hiro2233/URUS8/tags","blobs_url":"https://api.github.com/repos/hiro2233/URUS8/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hiro2233/URUS8/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hiro2233/URUS8/git/refs{/sha}","trees_url":"https://api.github.com/repos/hiro2233/URUS8/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hiro2233/URUS8/statuses/{sha}","languages_url":"https://api.github.com/repos/hiro2233/URUS8/languages","stargazers_url":"https://api.github.com/repos/hiro2233/URUS8/stargazers","contributors_url":"https://api.github.com/repos/hiro2233/URUS8/contributors","subscribers_url":"https://api.github.com/repos/hiro2233/URUS8/subscribers","subscription_url":"https://api.github.com/repos/hiro2233/URUS8/subscription","commits_url":"https://api.github.com/repos/hiro2233/URUS8/commits{/sha}","git_commits_url":"https://api.github.com/repos/hiro2233/URUS8/git/commits{/sha}","comments_url":"https://api.github.com/repos/hiro2233/URUS8/comments{/number}","issue_comment_url":"https://api.github.com/repos/hiro2233/URUS8/issues/comments{/number}","contents_url":"https://api.github.com/repos/hiro2233/URUS8/contents/{+path}","compare_url":"https://api.github.com/repos/hiro2233/URUS8/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hiro2233/URUS8/merges","archive_url":"https://api.github.com/repos/hiro2233/URUS8/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hiro2233/URUS8/downloads","issues_url":"https://api.github.com/repos/hiro2233/URUS8/issues{/number}","pulls_url":"https://api.github.com/repos/hiro2233/URUS8/pulls{/number}","milestones_url":"https://api.github.com/repos/hiro2233/URUS8/milestones{/number}","notifications_url":"https://api.github.com/repos/hiro2233/URUS8/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hiro2233/URUS8/labels{/name}","releases_url":"https://api.github.com/repos/hiro2233/URUS8/releases{/id}","deployments_url":"https://api.github.com/repos/hiro2233/URUS8/deployments","created_at":"2016-01-09T06:08:42Z","updated_at":"2016-03-27T08:20:22Z","pushed_at":"2016-08-16T15:06:49Z","git_url":"git://github.com/hiro2233/URUS8.git","ssh_url":"git@github.com:hiro2233/URUS8.git","clone_url":"https://github.com/hiro2233/URUS8.git","svn_url":"https://github.com/hiro2233/URUS8","homepage":"http://drone.bo/urus","size":78207,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":0,"default_branch":"backend-URUS-APM"}},"base":{"label":"ArduPilot:master","ref":"master","sha":"38fff6d43ded1df20f7032ab52ea061ebfee42d7","user":{"login":"ArduPilot","id":17919847,"avatar_url":"https://avatars.githubusercontent.com/u/17919847?v=3","gravatar_id":"","url":"https://api.github.com/users/ArduPilot","html_url":"https://github.com/ArduPilot","followers_url":"https://api.github.com/users/ArduPilot/followers","following_url":"https://api.github.com/users/ArduPilot/following{/other_user}","gists_url":"https://api.github.com/users/ArduPilot/gists{/gist_id}","starred_url":"https://api.github.com/users/ArduPilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArduPilot/subscriptions","organizations_url":"https://api.github.com/users/ArduPilot/orgs","repos_url":"https://api.github.com/users/ArduPilot/repos","events_url":"https://api.github.com/users/ArduPilot/events{/privacy}","received_events_url":"https://api.github.com/users/ArduPilot/received_events","type":"Organization","site_admin":false},"repo":{"id":7512484,"name":"ardupilot","full_name":"ArduPilot/ardupilot","owner":{"login":"ArduPilot","id":17919847,"avatar_url":"https://avatars.githubusercontent.com/u/17919847?v=3","gravatar_id":"","url":"https://api.github.com/users/ArduPilot","html_url":"https://github.com/ArduPilot","followers_url":"https://api.github.com/users/ArduPilot/followers","following_url":"https://api.github.com/users/ArduPilot/following{/other_user}","gists_url":"https://api.github.com/users/ArduPilot/gists{/gist_id}","starred_url":"https://api.github.com/users/ArduPilot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArduPilot/subscriptions","organizations_url":"https://api.github.com/users/ArduPilot/orgs","repos_url":"https://api.github.com/users/ArduPilot/repos","events_url":"https://api.github.com/users/ArduPilot/events{/privacy}","received_events_url":"https://api.github.com/users/ArduPilot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ArduPilot/ardupilot","description":"ArduPlane, ArduCopter, ArduRover source","fork":false,"url":"https://api.github.com/repos/ArduPilot/ardupilot","forks_url":"https://api.github.com/repos/ArduPilot/ardupilot/forks","keys_url":"https://api.github.com/repos/ArduPilot/ardupilot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArduPilot/ardupilot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArduPilot/ardupilot/teams","hooks_url":"https://api.github.com/repos/ArduPilot/ardupilot/hooks","issue_events_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/events{/number}","events_url":"https://api.github.com/repos/ArduPilot/ardupilot/events","assignees_url":"https://api.github.com/repos/ArduPilot/ardupilot/assignees{/user}","branches_url":"https://api.github.com/repos/ArduPilot/ardupilot/branches{/branch}","tags_url":"https://api.github.com/repos/ArduPilot/ardupilot/tags","blobs_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/{sha}","languages_url":"https://api.github.com/repos/ArduPilot/ardupilot/languages","stargazers_url":"https://api.github.com/repos/ArduPilot/ardupilot/stargazers","contributors_url":"https://api.github.com/repos/ArduPilot/ardupilot/contributors","subscribers_url":"https://api.github.com/repos/ArduPilot/ardupilot/subscribers","subscription_url":"https://api.github.com/repos/ArduPilot/ardupilot/subscription","commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArduPilot/ardupilot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArduPilot/ardupilot/contents/{+path}","compare_url":"https://api.github.com/repos/ArduPilot/ardupilot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArduPilot/ardupilot/merges","archive_url":"https://api.github.com/repos/ArduPilot/ardupilot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArduPilot/ardupilot/downloads","issues_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues{/number}","pulls_url":"https://api.github.com/repos/ArduPilot/ardupilot/pulls{/number}","milestones_url":"https://api.github.com/repos/ArduPilot/ardupilot/milestones{/number}","notifications_url":"https://api.github.com/repos/ArduPilot/ardupilot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArduPilot/ardupilot/labels{/name}","releases_url":"https://api.github.com/repos/ArduPilot/ardupilot/releases{/id}","deployments_url":"https://api.github.com/repos/ArduPilot/ardupilot/deployments","created_at":"2013-01-09T00:58:52Z","updated_at":"2016-08-16T07:27:51Z","pushed_at":"2016-08-16T15:34:57Z","git_url":"git://github.com/ArduPilot/ardupilot.git","ssh_url":"git@github.com:ArduPilot/ardupilot.git","clone_url":"https://github.com/ArduPilot/ardupilot.git","svn_url":"https://github.com/ArduPilot/ardupilot","homepage":"http://ardupilot.org/","size":144604,"stargazers_count":2017,"watchers_count":2017,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4282,"mirror_url":null,"open_issues_count":793,"forks":4282,"open_issues":793,"watchers":2017,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670"},"html":{"href":"https://github.com/ArduPilot/ardupilot/pull/4670"},"issue":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4670"},"comments":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/issues/4670/comments"},"review_comments":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670/comments"},"review_comment":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/pulls/4670/commits"},"statuses":{"href":"https://api.github.com/repos/ArduPilot/ardupilot/statuses/d9cdef51d2e8ef35abe8ecbd0fe6be61ac99bdf6"}}}}
{"actor":{"display_login":"hiro2233"}}