{"action":"opened","issue":{"url":"https://api.github.com/repos/Robot-Will/Stino/issues/499","repository_url":"https://api.github.com/repos/Robot-Will/Stino","labels_url":"https://api.github.com/repos/Robot-Will/Stino/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/Robot-Will/Stino/issues/499/comments","events_url":"https://api.github.com/repos/Robot-Will/Stino/issues/499/events","html_url":"https://github.com/Robot-Will/Stino/issues/499","id":332613968,"node_id":"MDU6SXNzdWUzMzI2MTM5Njg=","number":499,"title":" [Heads up] Issue with function declaration at the top of the program","user":{"login":"CptAwe","id":29108521,"node_id":"MDQ6VXNlcjI5MTA4NTIx","avatar_url":"https://avatars1.githubusercontent.com/u/29108521?v=4","gravatar_id":"","url":"https://api.github.com/users/CptAwe","html_url":"https://github.com/CptAwe","followers_url":"https://api.github.com/users/CptAwe/followers","following_url":"https://api.github.com/users/CptAwe/following{/other_user}","gists_url":"https://api.github.com/users/CptAwe/gists{/gist_id}","starred_url":"https://api.github.com/users/CptAwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CptAwe/subscriptions","organizations_url":"https://api.github.com/users/CptAwe/orgs","repos_url":"https://api.github.com/users/CptAwe/repos","events_url":"https://api.github.com/users/CptAwe/events{/privacy}","received_events_url":"https://api.github.com/users/CptAwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T01:08:36Z","updated_at":"2018-06-15T01:08:36Z","closed_at":null,"author_association":"NONE","body":"In the arduino IDE if you write a function after the setup() and loop() functions then you also have to declare it at the top. For example:\r\n\r\nImproper way:\r\n```c\r\nvoid setup(){\r\n    // random code\r\n}\r\n\r\nvoid loop(){\r\n    // more random code\r\n    func1();\r\n}\r\n\r\nvoid func1(){\r\n    // even more random code\r\n}\r\n```\r\n\r\nProper way:\r\n```c\r\n\r\n// function declaration\r\nvoid func1();\r\n\r\nvoid setup(){\r\n    // random code\r\n}\r\n\r\nvoid loop(){\r\n    // more random code\r\n    func1();\r\n}\r\n\r\nvoid func1(){\r\n    // even more random code\r\n}\r\n```\r\n\r\nAs of now I have never had a problem regarding this and everything was running smoothly. When I used the same code on the arduino IDE errors appeared. I have forgotten this quirk and got used to the \"wrong\" way of declaring a function. I believe that this way of function declaration should be discouraged.\r\n\r\nI understand that this issue is of low importance and doesn't in the slightest diminish the great work that was put into this plugin. I just wanted to make sure that it is reported."}}
{"actor":{"display_login":"CptAwe"}}