{"action":"created","comment":{"url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/comments/47316441","id":47316441,"diff_hunk":"@@ -16,9 +16,18 @@\n #include <lego.h>\n #include <lego_sensor_class.h>\n \n+/* The USER_LEGO_SENSOR_TEXT_VALUE_SIZE can be a maximum of PAGE_SIZE-2\n+ * to take into account a trailing newline (added later) and NULL. We are\n+ * limiting it to much less to save memory for each user_lego_sensor \n+ * instance.\n+ */\n+\n+#define USER_LEGO_SENSOR_TEXT_VALUE_SIZE (512-2)","path":"user/user_lego_sensor.h","position":10,"original_position":10,"commit_id":"af739c304f7899bf22a3bc85d9624e39cbe28837","original_commit_id":"af739c304f7899bf22a3bc85d9624e39cbe28837","user":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"body":"The user doesn't want it ever (this is a space separated list - there should never be newlines). If the last character before `/0` is `/n`, truncate it by writing over `/n` with `/0`.","created_at":"2015-12-11T02:38:42Z","updated_at":"2015-12-11T02:38:42Z","html_url":"https://github.com/ev3dev/lego-linux-drivers/pull/20#discussion_r47316441","pull_request_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/comments/47316441"},"html":{"href":"https://github.com/ev3dev/lego-linux-drivers/pull/20#discussion_r47316441"},"pull_request":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20","id":53216910,"html_url":"https://github.com/ev3dev/lego-linux-drivers/pull/20","diff_url":"https://github.com/ev3dev/lego-linux-drivers/pull/20.diff","patch_url":"https://github.com/ev3dev/lego-linux-drivers/pull/20.patch","issue_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/20","number":20,"state":"open","locked":false,"title":"Finish initial support for text_value","user":{"login":"rhempel","id":5571620,"avatar_url":"https://avatars.githubusercontent.com/u/5571620?v=3","gravatar_id":"","url":"https://api.github.com/users/rhempel","html_url":"https://github.com/rhempel","followers_url":"https://api.github.com/users/rhempel/followers","following_url":"https://api.github.com/users/rhempel/following{/other_user}","gists_url":"https://api.github.com/users/rhempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rhempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhempel/subscriptions","organizations_url":"https://api.github.com/users/rhempel/orgs","repos_url":"https://api.github.com/users/rhempel/repos","events_url":"https://api.github.com/users/rhempel/events{/privacy}","received_events_url":"https://api.github.com/users/rhempel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T05:23:29Z","updated_at":"2015-12-11T02:38:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c64164e4a56b1753ac2d5e22053a06d4016b352f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20/commits","review_comments_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20/comments","review_comment_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/20/comments","statuses_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/statuses/af739c304f7899bf22a3bc85d9624e39cbe28837","head":{"label":"rhempel:configfs","ref":"configfs","sha":"af739c304f7899bf22a3bc85d9624e39cbe28837","user":{"login":"rhempel","id":5571620,"avatar_url":"https://avatars.githubusercontent.com/u/5571620?v=3","gravatar_id":"","url":"https://api.github.com/users/rhempel","html_url":"https://github.com/rhempel","followers_url":"https://api.github.com/users/rhempel/followers","following_url":"https://api.github.com/users/rhempel/following{/other_user}","gists_url":"https://api.github.com/users/rhempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rhempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhempel/subscriptions","organizations_url":"https://api.github.com/users/rhempel/orgs","repos_url":"https://api.github.com/users/rhempel/repos","events_url":"https://api.github.com/users/rhempel/events{/privacy}","received_events_url":"https://api.github.com/users/rhempel/received_events","type":"User","site_admin":false},"repo":{"id":47739526,"name":"lego-linux-drivers","full_name":"rhempel/lego-linux-drivers","owner":{"login":"rhempel","id":5571620,"avatar_url":"https://avatars.githubusercontent.com/u/5571620?v=3","gravatar_id":"","url":"https://api.github.com/users/rhempel","html_url":"https://github.com/rhempel","followers_url":"https://api.github.com/users/rhempel/followers","following_url":"https://api.github.com/users/rhempel/following{/other_user}","gists_url":"https://api.github.com/users/rhempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rhempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhempel/subscriptions","organizations_url":"https://api.github.com/users/rhempel/orgs","repos_url":"https://api.github.com/users/rhempel/repos","events_url":"https://api.github.com/users/rhempel/events{/privacy}","received_events_url":"https://api.github.com/users/rhempel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhempel/lego-linux-drivers","description":"LEGO MINDSTORMS and LEGO WeDo drivers for Linux from the ev3dev project","fork":true,"url":"https://api.github.com/repos/rhempel/lego-linux-drivers","forks_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/forks","keys_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/teams","hooks_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/hooks","issue_events_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/issues/events{/number}","events_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/events","assignees_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/assignees{/user}","branches_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/branches{/branch}","tags_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/tags","blobs_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/statuses/{sha}","languages_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/languages","stargazers_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/stargazers","contributors_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/contributors","subscribers_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/subscribers","subscription_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/subscription","commits_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/contents/{+path}","compare_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/merges","archive_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/downloads","issues_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/issues{/number}","pulls_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/pulls{/number}","milestones_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/milestones{/number}","notifications_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/labels{/name}","releases_url":"https://api.github.com/repos/rhempel/lego-linux-drivers/releases{/id}","created_at":"2015-12-10T05:15:38Z","updated_at":"2015-12-10T05:15:39Z","pushed_at":"2015-12-10T05:23:11Z","git_url":"git://github.com/rhempel/lego-linux-drivers.git","ssh_url":"git@github.com:rhempel/lego-linux-drivers.git","clone_url":"https://github.com/rhempel/lego-linux-drivers.git","svn_url":"https://github.com/rhempel/lego-linux-drivers","homepage":"http://www.ev3dev.org","size":1120,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"ev3dev:master","ref":"master","sha":"c42f807ce2cf62f960c5c814a11298ec6e67c01d","user":{"login":"ev3dev","id":6878323,"avatar_url":"https://avatars.githubusercontent.com/u/6878323?v=3","gravatar_id":"","url":"https://api.github.com/users/ev3dev","html_url":"https://github.com/ev3dev","followers_url":"https://api.github.com/users/ev3dev/followers","following_url":"https://api.github.com/users/ev3dev/following{/other_user}","gists_url":"https://api.github.com/users/ev3dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ev3dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ev3dev/subscriptions","organizations_url":"https://api.github.com/users/ev3dev/orgs","repos_url":"https://api.github.com/users/ev3dev/repos","events_url":"https://api.github.com/users/ev3dev/events{/privacy}","received_events_url":"https://api.github.com/users/ev3dev/received_events","type":"Organization","site_admin":false},"repo":{"id":28286217,"name":"lego-linux-drivers","full_name":"ev3dev/lego-linux-drivers","owner":{"login":"ev3dev","id":6878323,"avatar_url":"https://avatars.githubusercontent.com/u/6878323?v=3","gravatar_id":"","url":"https://api.github.com/users/ev3dev","html_url":"https://github.com/ev3dev","followers_url":"https://api.github.com/users/ev3dev/followers","following_url":"https://api.github.com/users/ev3dev/following{/other_user}","gists_url":"https://api.github.com/users/ev3dev/gists{/gist_id}","starred_url":"https://api.github.com/users/ev3dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ev3dev/subscriptions","organizations_url":"https://api.github.com/users/ev3dev/orgs","repos_url":"https://api.github.com/users/ev3dev/repos","events_url":"https://api.github.com/users/ev3dev/events{/privacy}","received_events_url":"https://api.github.com/users/ev3dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ev3dev/lego-linux-drivers","description":"LEGO MINDSTORMS and LEGO WeDo drivers for Linux from the ev3dev project","fork":false,"url":"https://api.github.com/repos/ev3dev/lego-linux-drivers","forks_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/forks","keys_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/teams","hooks_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/hooks","issue_events_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/events{/number}","events_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/events","assignees_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/assignees{/user}","branches_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/branches{/branch}","tags_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/tags","blobs_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/git/refs{/sha}","trees_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/statuses/{sha}","languages_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/languages","stargazers_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/stargazers","contributors_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/contributors","subscribers_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/subscribers","subscription_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/subscription","commits_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/commits{/sha}","git_commits_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/git/commits{/sha}","comments_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/comments{/number}","issue_comment_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/comments{/number}","contents_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/contents/{+path}","compare_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/merges","archive_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/downloads","issues_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues{/number}","pulls_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls{/number}","milestones_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/milestones{/number}","notifications_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/labels{/name}","releases_url":"https://api.github.com/repos/ev3dev/lego-linux-drivers/releases{/id}","created_at":"2014-12-21T02:41:32Z","updated_at":"2015-12-05T21:17:07Z","pushed_at":"2015-12-10T05:23:29Z","git_url":"git://github.com/ev3dev/lego-linux-drivers.git","ssh_url":"git@github.com:ev3dev/lego-linux-drivers.git","clone_url":"https://github.com/ev3dev/lego-linux-drivers.git","svn_url":"https://github.com/ev3dev/lego-linux-drivers","homepage":"http://www.ev3dev.org","size":1146,"stargazers_count":12,"watchers_count":12,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":1,"forks":19,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20"},"html":{"href":"https://github.com/ev3dev/lego-linux-drivers/pull/20"},"issue":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/20"},"comments":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/ev3dev/lego-linux-drivers/statuses/af739c304f7899bf22a3bc85d9624e39cbe28837"}}}}