{"action":"created","issue":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/2023","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/2023/labels{/name}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/2023/comments","events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/2023/events","html_url":"https://github.com/MarlinFirmware/Marlin/issues/2023","id":73365770,"number":2023,"title":"Better handling of SDCARDDETECT -1","user":{"login":"trikko","id":647157,"avatar_url":"https://avatars.githubusercontent.com/u/647157?v=3","gravatar_id":"","url":"https://api.github.com/users/trikko","html_url":"https://github.com/trikko","followers_url":"https://api.github.com/users/trikko/followers","following_url":"https://api.github.com/users/trikko/following{/other_user}","gists_url":"https://api.github.com/users/trikko/gists{/gist_id}","starred_url":"https://api.github.com/users/trikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trikko/subscriptions","organizations_url":"https://api.github.com/users/trikko/orgs","repos_url":"https://api.github.com/users/trikko/repos","events_url":"https://api.github.com/users/trikko/events{/privacy}","received_events_url":"https://api.github.com/users/trikko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/labels/Feature%20request","name":"Feature request","color":"006b75"},{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/labels/Hardware%20Support","name":"Hardware Support","color":"006b75"},{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/labels/Needs%20more%20work","name":"Needs more work","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/milestones/7","html_url":"https://github.com/MarlinFirmware/Marlin/milestones/Feature%20Requests%20Round%201","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/milestones/7/labels","id":1033422,"number":7,"title":"Feature Requests Round 1","description":"","creator":{"login":"boelle","id":3832239,"avatar_url":"https://avatars.githubusercontent.com/u/3832239?v=3","gravatar_id":"","url":"https://api.github.com/users/boelle","html_url":"https://github.com/boelle","followers_url":"https://api.github.com/users/boelle/followers","following_url":"https://api.github.com/users/boelle/following{/other_user}","gists_url":"https://api.github.com/users/boelle/gists{/gist_id}","starred_url":"https://api.github.com/users/boelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boelle/subscriptions","organizations_url":"https://api.github.com/users/boelle/orgs","repos_url":"https://api.github.com/users/boelle/repos","events_url":"https://api.github.com/users/boelle/events{/privacy}","received_events_url":"https://api.github.com/users/boelle/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-03-23T07:22:33Z","updated_at":"2015-05-07T01:11:14Z","due_on":"2016-01-07T23:00:00Z","closed_at":null},"comments":13,"created_at":"2015-05-05T16:45:00Z","updated_at":"2015-05-08T07:44:40Z","closed_at":null,"body":"Now when I change or insert a sdcard I have to select from menu \"change sdcard\" or \"init sdcard\". Can't this be done automatically when I select \"print from sd card\"? It seems a fast operation."},"comment":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/comments/100137567","html_url":"https://github.com/MarlinFirmware/Marlin/issues/2023#issuecomment-100137567","issue_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/2023","id":100137567,"user":{"login":"trikko","id":647157,"avatar_url":"https://avatars.githubusercontent.com/u/647157?v=3","gravatar_id":"","url":"https://api.github.com/users/trikko","html_url":"https://github.com/trikko","followers_url":"https://api.github.com/users/trikko/followers","following_url":"https://api.github.com/users/trikko/following{/other_user}","gists_url":"https://api.github.com/users/trikko/gists{/gist_id}","starred_url":"https://api.github.com/users/trikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trikko/subscriptions","organizations_url":"https://api.github.com/users/trikko/orgs","repos_url":"https://api.github.com/users/trikko/repos","events_url":"https://api.github.com/users/trikko/events{/privacy}","received_events_url":"https://api.github.com/users/trikko/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T07:44:40Z","updated_at":"2015-05-08T07:44:40Z","body":"I think it could be a good idea to use a #define for this\r\nSomething like: #define SDCARD_AUTO_INIT\r\n\r\nSo:\r\n#if SDCARDDETECT >= 0\r\n... current code ...\r\n#elif defined(SDCARD_AUTO_INIT)\r\n... here it automaGically call init/change sd card when you select \"print from sdcard\" menu ...\r\n#endif\r\n\r\n\r\n"}}