{"action":"created","issue":{"url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/84","labels_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/84/comments","events_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/84/events","html_url":"https://github.com/luc-github/Repetier-Firmware-0.92/issues/84","id":85560713,"number":84,"title":"Safety:  Modify filament detection code to home before issuing change command","user":{"login":"jnadke","id":826307,"avatar_url":"https://avatars.githubusercontent.com/u/826307?v=3","gravatar_id":"","url":"https://api.github.com/users/jnadke","html_url":"https://github.com/jnadke","followers_url":"https://api.github.com/users/jnadke/followers","following_url":"https://api.github.com/users/jnadke/following{/other_user}","gists_url":"https://api.github.com/users/jnadke/gists{/gist_id}","starred_url":"https://api.github.com/users/jnadke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnadke/subscriptions","organizations_url":"https://api.github.com/users/jnadke/orgs","repos_url":"https://api.github.com/users/jnadke/repos","events_url":"https://api.github.com/users/jnadke/events{/privacy}","received_events_url":"https://api.github.com/users/jnadke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-06-05T15:35:37Z","updated_at":"2015-06-07T01:33:48Z","closed_at":null,"body":"Currently the optical sensor triggers a filament load which displays a message asking to proceed before homing the axes.\r\n\r\nWhen the printing stops, the print head stays heated above the last known position, parked above the printing object.  This creates melted or even burn marks and could be a very unsafe condition where a fire could start.\r\n\r\nSuggestion:\r\nIn ui.cpp add:\r\nif (!Printer::isXHomed())executeAction(UI_ACTION_HOME_X,true);\r\nif (!Printer::isYHomed())executeAction(UI_ACTION_HOME_Y,true);\r\n\r\njust before line 4353:\r\npushMenu(&ui_menu_load_unload,true);\r\n\r\nfor the UI_ACTION_NO_FILAMENT command."},"comment":{"url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/comments/109669492","html_url":"https://github.com/luc-github/Repetier-Firmware-0.92/issues/84#issuecomment-109669492","issue_url":"https://api.github.com/repos/luc-github/Repetier-Firmware-0.92/issues/84","id":109669492,"user":{"login":"jnadke","id":826307,"avatar_url":"https://avatars.githubusercontent.com/u/826307?v=3","gravatar_id":"","url":"https://api.github.com/users/jnadke","html_url":"https://github.com/jnadke","followers_url":"https://api.github.com/users/jnadke/followers","following_url":"https://api.github.com/users/jnadke/following{/other_user}","gists_url":"https://api.github.com/users/jnadke/gists{/gist_id}","starred_url":"https://api.github.com/users/jnadke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnadke/subscriptions","organizations_url":"https://api.github.com/users/jnadke/orgs","repos_url":"https://api.github.com/users/jnadke/repos","events_url":"https://api.github.com/users/jnadke/events{/privacy}","received_events_url":"https://api.github.com/users/jnadke/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T01:33:48Z","updated_at":"2015-06-07T01:33:48Z","body":"The issue is the printer serial port has a buffer as well, so the host will send the commands as long as there's room.\r\n\r\nWhen using waitUntilEndOfAllMoves the printer will finish out the buffer without any filament, and then when the print resumes the print could have moved an entire Z layer without filament (this is an issue I had)."}}