{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/169","repository_url":"https://api.github.com/repos/ev3dev/ev3dev-lang","labels_url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/169/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/169/events","html_url":"https://github.com/ev3dev/ev3dev-lang/pull/169","id":179475006,"number":169,"title":"Convert types and indices in special sensor specification to lists","user":{"login":"ddemidov","id":270503,"avatar_url":"https://avatars.githubusercontent.com/u/270503?v=3","gravatar_id":"","url":"https://api.github.com/users/ddemidov","html_url":"https://github.com/ddemidov","followers_url":"https://api.github.com/users/ddemidov/followers","following_url":"https://api.github.com/users/ddemidov/following{/other_user}","gists_url":"https://api.github.com/users/ddemidov/gists{/gist_id}","starred_url":"https://api.github.com/users/ddemidov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddemidov/subscriptions","organizations_url":"https://api.github.com/users/ddemidov/orgs","repos_url":"https://api.github.com/users/ddemidov/repos","events_url":"https://api.github.com/users/ddemidov/events{/privacy}","received_events_url":"https://api.github.com/users/ddemidov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-27T12:08:16Z","updated_at":"2016-09-27T13:39:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ev3dev/ev3dev-lang/pulls/169","html_url":"https://github.com/ev3dev/ev3dev-lang/pull/169","diff_url":"https://github.com/ev3dev/ev3dev-lang/pull/169.diff","patch_url":"https://github.com/ev3dev/ev3dev-lang/pull/169.patch"},"body":"This allows to correctly work with modes that have several values.\r\nThe immediate example is `GYRO-G&A` mode that is added to `gyroSensor` with this PR.\r\n\r\n:exclamation:  Requires rewriting templates for special sensor types.\r\n\r\nSee ddemidov/ev3dev-lang-cpp#10"},"comment":{"url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/comments/249867506","html_url":"https://github.com/ev3dev/ev3dev-lang/pull/169#issuecomment-249867506","issue_url":"https://api.github.com/repos/ev3dev/ev3dev-lang/issues/169","id":249867506,"user":{"login":"ddemidov","id":270503,"avatar_url":"https://avatars.githubusercontent.com/u/270503?v=3","gravatar_id":"","url":"https://api.github.com/users/ddemidov","html_url":"https://github.com/ddemidov","followers_url":"https://api.github.com/users/ddemidov/followers","following_url":"https://api.github.com/users/ddemidov/following{/other_user}","gists_url":"https://api.github.com/users/ddemidov/gists{/gist_id}","starred_url":"https://api.github.com/users/ddemidov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddemidov/subscriptions","organizations_url":"https://api.github.com/users/ddemidov/orgs","repos_url":"https://api.github.com/users/ddemidov/repos","events_url":"https://api.github.com/users/ddemidov/events{/privacy}","received_events_url":"https://api.github.com/users/ddemidov/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T13:39:28Z","updated_at":"2016-09-27T13:39:28Z","body":"Sure. Compare the result of the template here: https://github.com/ddemidov/ev3dev-lang-cpp/blob/858c0cb77b43f4e265fc571783986f5da51db556/ev3dev.h#L481-L491\r\n\r\nThe first method is generated from a type/indices list with single entry, and the second is generated from two entries. The template just checks if the `type` list has single entry and does different things depending on that."}}
{"actor":{"display_login":"ddemidov"}}