{"action":"created","issue":{"url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/3","repository_url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater","labels_url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/3/comments","events_url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/3/events","html_url":"https://github.com/tobozo/M5Stack-SD-Updater/issues/3","id":306655317,"number":3,"title":"M5Stack-SD-Menu compilation error","user":{"login":"reaper7","id":4134851,"avatar_url":"https://avatars0.githubusercontent.com/u/4134851?v=4","gravatar_id":"","url":"https://api.github.com/users/reaper7","html_url":"https://github.com/reaper7","followers_url":"https://api.github.com/users/reaper7/followers","following_url":"https://api.github.com/users/reaper7/following{/other_user}","gists_url":"https://api.github.com/users/reaper7/gists{/gist_id}","starred_url":"https://api.github.com/users/reaper7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaper7/subscriptions","organizations_url":"https://api.github.com/users/reaper7/orgs","repos_url":"https://api.github.com/users/reaper7/repos","events_url":"https://api.github.com/users/reaper7/events{/privacy}","received_events_url":"https://api.github.com/users/reaper7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-19T22:06:34Z","updated_at":"2018-03-20T09:41:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I try compile new example M5Stack-SD-Menu\r\nbut I got errors:\r\n```\r\nIn file included from C:\\PROGRAMY\\arduino_projekty\\libraries\\M5Stack-SD-Updater\\examples\\M5Stack-SD-Menu\\M5Stack-SD-Menu.ino:75:0:\r\n\r\nsketch\\joyPSP.h: In function 'void handleJoyPad()':\r\n\r\njoyPSP.h:76:14: error: 'class M5SAM' has no member named 'setListID'\r\n\r\n       M5Menu.setListID(MenuID);\r\n\r\n              ^\r\n\r\njoyPSP.h:90:14: error: 'class M5SAM' has no member named 'setListID'\r\n\r\n       M5Menu.setListID(MenuID);\r\n\r\n              ^\r\n\r\nC:\\PROGRAMY\\arduino_projekty\\libraries\\M5Stack-SD-Updater\\examples\\M5Stack-SD-Menu\\M5Stack-SD-Menu.ino: In function 'void renderIcon(uint16_t)':\r\n\r\nM5Stack-SD-Menu:191:30: error: cannot convert 'FileInfo' to 'uint16_t {aka short unsigned int}' for argument '1' to 'void renderIcon(uint16_t)'\r\n\r\n   renderIcon(fileInfo[MenuID]);\r\n\r\n                              ^\r\n\r\nexit status 1\r\n'class M5SAM' has no member named 'setListID'\r\n```\r\n\r\nwhen I comment out //#define USE_PSP_JOY true\r\nthen got:\r\n```\r\nC:\\tmp\\arduino_modified_sketch_208768\\M5Stack-SD-Menu.ino: In function 'void renderIcon(uint16_t)':\r\n\r\nM5Stack-SD-Menu:191:30: error: cannot convert 'FileInfo' to 'uint16_t {aka short unsigned int}' for argument '1' to 'void renderIcon(uint16_t)'\r\n\r\n   renderIcon(fileInfo[MenuID]);\r\n\r\n                              ^\r\n\r\nexit status 1\r\ncannot convert 'FileInfo' to 'uint16_t {aka short unsigned int}' for argument '1' to 'void renderIcon(uint16_t)'\r\n```"},"comment":{"url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/comments/374533980","html_url":"https://github.com/tobozo/M5Stack-SD-Updater/issues/3#issuecomment-374533980","issue_url":"https://api.github.com/repos/tobozo/M5Stack-SD-Updater/issues/3","id":374533980,"user":{"login":"reaper7","id":4134851,"avatar_url":"https://avatars0.githubusercontent.com/u/4134851?v=4","gravatar_id":"","url":"https://api.github.com/users/reaper7","html_url":"https://github.com/reaper7","followers_url":"https://api.github.com/users/reaper7/followers","following_url":"https://api.github.com/users/reaper7/following{/other_user}","gists_url":"https://api.github.com/users/reaper7/gists{/gist_id}","starred_url":"https://api.github.com/users/reaper7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reaper7/subscriptions","organizations_url":"https://api.github.com/users/reaper7/orgs","repos_url":"https://api.github.com/users/reaper7/repos","events_url":"https://api.github.com/users/reaper7/events{/privacy}","received_events_url":"https://api.github.com/users/reaper7/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T09:41:45Z","updated_at":"2018-03-20T09:41:45Z","author_association":"CONTRIBUTOR","body":"strange...\r\ngcc compiler for esp32 is more restrictive than esp8266\r\nfor e.g. :\r\nQRCode example on esp8266 give tons of **warnings** for #pragma:\r\n```\r\nC:\\PROGRAMY\\arduino_projekty\\libraries\\QRCode\\src\\qrcode.c:37:0: warning: ignoring #pragma mark  [-Wunknown-pragmas]\r\n\r\n #pragma mark - Error Correction Lookup tables\r\n```\r\nQRCode example on esp32 give tons of **errors** for the same #pragma and break compilation!:\r\n```\r\nC:\\PROGRAMY\\arduino_projekty\\libraries\\QRCode\\src\\qrcode.c:37:0: error: ignoring #pragma mark  [-Werror=unknown-pragmas]\r\n\r\n #pragma mark - Error Correction Lookup tables\r\n```\r\n"}}
{"actor":{"display_login":"reaper7"}}