{"action":"created","issue":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12550","repository_url":"https://api.github.com/repos/MarlinFirmware/Marlin","labels_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12550/labels{/name}","comments_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12550/comments","events_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12550/events","html_url":"https://github.com/MarlinFirmware/Marlin/issues/12550","id":385435109,"node_id":"MDU6SXNzdWUzODU0MzUxMDk=","number":12550,"title":"M303 parsing E value bug in M303.cpp","user":{"login":"dayaan82","id":40044651,"node_id":"MDQ6VXNlcjQwMDQ0NjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40044651?v=4","gravatar_id":"","url":"https://api.github.com/users/dayaan82","html_url":"https://github.com/dayaan82","followers_url":"https://api.github.com/users/dayaan82/followers","following_url":"https://api.github.com/users/dayaan82/following{/other_user}","gists_url":"https://api.github.com/users/dayaan82/gists{/gist_id}","starred_url":"https://api.github.com/users/dayaan82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dayaan82/subscriptions","organizations_url":"https://api.github.com/users/dayaan82/orgs","repos_url":"https://api.github.com/users/dayaan82/repos","events_url":"https://api.github.com/users/dayaan82/events{/privacy}","received_events_url":"https://api.github.com/users/dayaan82/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-28T20:04:14Z","updated_at":"2018-11-28T20:22:02Z","closed_at":"2018-11-28T20:16:03Z","author_association":"NONE","body":"The original code has E value parsing by `parser.byteval('E')`. It does not work for me.. so I couldn't tune the BED.. maybe a sign problem\r\n\r\nSwitching to `parser.intval('E')` solved the problem for me.\r\n\r\n```cpp\r\nvoid GcodeSuite::M303() {\r\n\r\n  const int8_t e = parser.intval('E');  // <=======\r\n\r\n  if (!WITHIN(e, 0\r\n    #if ENABLED(PIDTEMPBED)\r\n      -1\r\n    #endif\r\n    ,\r\n    #if ENABLED(PIDTEMP)\r\n      HOTENDS\r\n    #endif\r\n    -1\r\n  )) {\r\n    SERIAL_ECHOLNPGM(MSG_PID_BAD_EXTRUDER_NUM);\r\n    return;\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/comments/442591279","html_url":"https://github.com/MarlinFirmware/Marlin/issues/12550#issuecomment-442591279","issue_url":"https://api.github.com/repos/MarlinFirmware/Marlin/issues/12550","id":442591279,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjU5MTI3OQ==","user":{"login":"dayaan82","id":40044651,"node_id":"MDQ6VXNlcjQwMDQ0NjUx","avatar_url":"https://avatars0.githubusercontent.com/u/40044651?v=4","gravatar_id":"","url":"https://api.github.com/users/dayaan82","html_url":"https://github.com/dayaan82","followers_url":"https://api.github.com/users/dayaan82/followers","following_url":"https://api.github.com/users/dayaan82/following{/other_user}","gists_url":"https://api.github.com/users/dayaan82/gists{/gist_id}","starred_url":"https://api.github.com/users/dayaan82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dayaan82/subscriptions","organizations_url":"https://api.github.com/users/dayaan82/orgs","repos_url":"https://api.github.com/users/dayaan82/repos","events_url":"https://api.github.com/users/dayaan82/events{/privacy}","received_events_url":"https://api.github.com/users/dayaan82/received_events","type":"User","site_admin":false},"created_at":"2018-11-28T20:22:02Z","updated_at":"2018-11-28T20:22:02Z","author_association":"NONE","body":"Ok.\r\nSorry for the confusion.\r\n\r\nYou can mark this as a mistake."}}
{"actor":{"display_login":"dayaan82"}}