{"action":"created","issue":{"url":"https://api.github.com/repos/greiman/SdFat/issues/122","repository_url":"https://api.github.com/repos/greiman/SdFat","labels_url":"https://api.github.com/repos/greiman/SdFat/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/greiman/SdFat/issues/122/comments","events_url":"https://api.github.com/repos/greiman/SdFat/issues/122/events","html_url":"https://github.com/greiman/SdFat/issues/122","id":394793385,"node_id":"MDU6SXNzdWUzOTQ3OTMzODU=","number":122,"title":"problem with intilizing sd card.","user":{"login":"MaxBoyman","id":24266760,"node_id":"MDQ6VXNlcjI0MjY2NzYw","avatar_url":"https://avatars2.githubusercontent.com/u/24266760?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxBoyman","html_url":"https://github.com/MaxBoyman","followers_url":"https://api.github.com/users/MaxBoyman/followers","following_url":"https://api.github.com/users/MaxBoyman/following{/other_user}","gists_url":"https://api.github.com/users/MaxBoyman/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxBoyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxBoyman/subscriptions","organizations_url":"https://api.github.com/users/MaxBoyman/orgs","repos_url":"https://api.github.com/users/MaxBoyman/repos","events_url":"https://api.github.com/users/MaxBoyman/events{/privacy}","received_events_url":"https://api.github.com/users/MaxBoyman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-12-29T12:50:45Z","updated_at":"2019-01-04T17:46:09Z","closed_at":null,"author_association":"NONE","body":"there was a common problem with your library and all of the programs which i wrote in the past and that was problem initilizing sd card in first definition step. \r\nif (!SD.begin(SD_CS_PIN)) {}\r\nwas randomly true. \r\ni had tested this situation with lots of SD card modules and arduino boards. for example Mega 2560, Uno, Due.\r\nafter lots of searches i found the problem can be solved with adding a simple delay(150) to the file SdSpiCard.cpp in line 141 which is : \r\nwhile (cardCommand(CMD0, 0) != R1_IDLE_STATE) {\r\n\t  delay(150); //Added line\r\n    if (isTimedOut(t0, SD_INIT_TIMEOUT)) {\r\n      error(SD_CARD_ERROR_CMD0);\r\n      goto fail;\r\n    }\r\n  }\r\nthis solved the whole problem. please investigate this and add the line if it's true."},"comment":{"url":"https://api.github.com/repos/greiman/SdFat/issues/comments/451516078","html_url":"https://github.com/greiman/SdFat/issues/122#issuecomment-451516078","issue_url":"https://api.github.com/repos/greiman/SdFat/issues/122","id":451516078,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MTUxNjA3OA==","user":{"login":"MaxBoyman","id":24266760,"node_id":"MDQ6VXNlcjI0MjY2NzYw","avatar_url":"https://avatars2.githubusercontent.com/u/24266760?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxBoyman","html_url":"https://github.com/MaxBoyman","followers_url":"https://api.github.com/users/MaxBoyman/followers","following_url":"https://api.github.com/users/MaxBoyman/following{/other_user}","gists_url":"https://api.github.com/users/MaxBoyman/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxBoyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxBoyman/subscriptions","organizations_url":"https://api.github.com/users/MaxBoyman/orgs","repos_url":"https://api.github.com/users/MaxBoyman/repos","events_url":"https://api.github.com/users/MaxBoyman/events{/privacy}","received_events_url":"https://api.github.com/users/MaxBoyman/received_events","type":"User","site_admin":false},"created_at":"2019-01-04T17:46:09Z","updated_at":"2019-01-04T17:46:09Z","author_association":"NONE","body":"Arduino Mega2560.\r\ncan't find the sd card brand but i am trying to add a pull-up resistor. what is the resistor amount  which can suit it best? because you said 10-100k which is better?"}}
{"actor":{"display_login":"MaxBoyman"}}