{"action":"closed","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/2826","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/2826/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/2826/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/2826/events","html_url":"https://github.com/arduino/Arduino/issues/2826","id":64869522,"number":2826,"title":"Leonardo: Serial.available() never returns values greater than 1","user":{"login":"sudden6","id":5585762,"avatar_url":"https://avatars.githubusercontent.com/u/5585762?v=3","gravatar_id":"","url":"https://api.github.com/users/sudden6","html_url":"https://github.com/sudden6","followers_url":"https://api.github.com/users/sudden6/followers","following_url":"https://api.github.com/users/sudden6/following{/other_user}","gists_url":"https://api.github.com/users/sudden6/gists{/gist_id}","starred_url":"https://api.github.com/users/sudden6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudden6/subscriptions","organizations_url":"https://api.github.com/users/sudden6/orgs","repos_url":"https://api.github.com/users/sudden6/repos","events_url":"https://api.github.com/users/sudden6/events{/privacy}","received_events_url":"https://api.github.com/users/sudden6/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arduino/Arduino/labels/Architecture:%20AVR","name":"Architecture: AVR","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arduino/Arduino/milestones/15","html_url":"https://github.com/arduino/Arduino/milestones/Release%201.6.6","labels_url":"https://api.github.com/repos/arduino/Arduino/milestones/15/labels","id":1158070,"number":15,"title":"Release 1.6.6","description":"","creator":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":235,"state":"open","created_at":"2015-06-10T07:48:32Z","updated_at":"2015-07-13T14:07:00Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-03-27T23:20:24Z","updated_at":"2015-07-13T14:07:00Z","closed_at":"2015-07-13T14:07:00Z","body":"On the Arduino Leonardo Serial.available() never returns values greater 1, even if there are more chars in the buffer.\r\n\r\nExample:\r\n```\r\nvoid setup(void) {\r\n  \r\n  Serial.begin(9600);\r\n  while (!Serial) {\r\n    ; // wait for serial port to connect. Needed for Leonardo only\r\n  }\r\n}\r\n\r\nvoid loop(void) {\r\n  Serial.println(Serial.available());\r\n  delay(500);\r\n}\r\n```\r\n\r\nResult: The Leonardo sends 0 as long as there's no character sent and 1 if you send any amount of characters.\r\n\r\nExpected result: For every character you send, the value sent from the Leonardo should increase.\r\n"}}