{"action":"created","issue":{"url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/451","labels_url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/451/comments","events_url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/451/events","html_url":"https://github.com/repetier/Repetier-Firmware/issues/451","id":125237555,"number":451,"title":"Compile Error on Latest work092 Branch","user":{"login":"floyd871","id":7797850,"avatar_url":"https://avatars.githubusercontent.com/u/7797850?v=3","gravatar_id":"","url":"https://api.github.com/users/floyd871","html_url":"https://github.com/floyd871","followers_url":"https://api.github.com/users/floyd871/followers","following_url":"https://api.github.com/users/floyd871/following{/other_user}","gists_url":"https://api.github.com/users/floyd871/gists{/gist_id}","starred_url":"https://api.github.com/users/floyd871/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floyd871/subscriptions","organizations_url":"https://api.github.com/users/floyd871/orgs","repos_url":"https://api.github.com/users/floyd871/repos","events_url":"https://api.github.com/users/floyd871/events{/privacy}","received_events_url":"https://api.github.com/users/floyd871/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T18:50:22Z","updated_at":"2016-01-07T17:58:44Z","closed_at":null,"body":"Seems something to to with the Display i have selected (RepRapDiscount Full Graphic...)\r\nWhen i use no Display all works fine.\r\n\r\n\r\nArduino 1.6.7 Error output:\r\n----------------------------------------------------------------------------------------------------------\r\nIn file included from sketch\\HAL.h:83:0,\r\n\r\n                 from sketch\\Repetier.h:468,\r\n\r\n                 from sketch\\ui.cpp:20:\r\n\r\nsketch\\ui.h: In function 'void uiInitKeys()':\r\n\r\nfastio.h:34: error: 'DIOUI_RESET_PIN_DDR' was not declared in this scope\r\n\r\n #define  _SET_INPUT(IO)  do {DIO ##  IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)\r\n\r\n                              ^\r\n\r\nsketch\\fastio.h:54:26: note: in expansion of macro '_SET_INPUT'\r\n\r\n #define  SET_INPUT(IO)   _SET_INPUT(IO)\r\n\r\n                          ^\r\n\r\nsketch\\ui.h:328:38: note: in expansion of macro 'SET_INPUT'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                      ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nIn file included from sketch\\HAL.h:83:0,\r\n\r\n                 from sketch\\Repetier.h:468,\r\n\r\n                 from sketch\\ui.cpp:20:\r\n\r\nfastio.h:34: error: 'DIOUI_RESET_PIN_PIN' was not declared in this scope\r\n\r\n #define  _SET_INPUT(IO)  do {DIO ##  IO ## _DDR &= ~MASK(DIO ## IO ## _PIN); } while (0)\r\n\r\n                                                          ^\r\n\r\nsketch\\fastio.h:17:30: note: in definition of macro 'MASK'\r\n\r\n  #define  MASK(PIN)    (1 << PIN)\r\n\r\n                              ^\r\n\r\nsketch\\fastio.h:54:26: note: in expansion of macro '_SET_INPUT'\r\n\r\n #define  SET_INPUT(IO)   _SET_INPUT(IO)\r\n\r\n                          ^\r\n\r\nsketch\\ui.h:328:38: note: in expansion of macro 'SET_INPUT'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                      ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nfastio.h:29: error: 'DIOUI_RESET_PIN_WPORT' was not declared in this scope\r\n\r\n #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)\r\n\r\n                                       ^\r\n\r\nsketch\\fastio.h:49:37: note: in expansion of macro '_WRITE'\r\n\r\n #define     PULLUP(IO,v)            _WRITE(IO, v)\r\n\r\n                                     ^\r\n\r\nsketch\\ui.h:328:53: note: in expansion of macro 'PULLUP'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                                     ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nfastio.h:29: error: 'DIOUI_RESET_PIN_PIN' was not declared in this scope\r\n\r\n #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)\r\n\r\n                                                                    ^\r\n\r\nsketch\\fastio.h:17:30: note: in definition of macro 'MASK'\r\n\r\n  #define  MASK(PIN)    (1 << PIN)\r\n\r\n                              ^\r\n\r\nsketch\\fastio.h:49:37: note: in expansion of macro '_WRITE'\r\n\r\n #define     PULLUP(IO,v)            _WRITE(IO, v)\r\n\r\n                                     ^\r\n\r\nsketch\\ui.h:328:53: note: in expansion of macro 'PULLUP'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                                     ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nfastio.h:29: error: 'DIOUI_RESET_PIN_WPORT' was not declared in this scope\r\n\r\n #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)\r\n\r\n                                                                                                ^\r\n\r\nsketch\\fastio.h:49:37: note: in expansion of macro '_WRITE'\r\n\r\n #define     PULLUP(IO,v)            _WRITE(IO, v)\r\n\r\n                                     ^\r\n\r\nsketch\\ui.h:328:53: note: in expansion of macro 'PULLUP'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                                     ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nfastio.h:29: error: 'DIOUI_RESET_PIN_PIN' was not declared in this scope\r\n\r\n #define  _WRITE(IO, v)   do { if (v) {DIO ##  IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ##  IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)\r\n\r\n                                                                                                                              ^\r\n\r\nsketch\\fastio.h:17:30: note: in definition of macro 'MASK'\r\n\r\n  #define  MASK(PIN)    (1 << PIN)\r\n\r\n                              ^\r\n\r\nsketch\\fastio.h:49:37: note: in expansion of macro '_WRITE'\r\n\r\n #define     PULLUP(IO,v)            _WRITE(IO, v)\r\n\r\n                                     ^\r\n\r\nsketch\\ui.h:328:53: note: in expansion of macro 'PULLUP'\r\n\r\n #define UI_KEYS_INIT_BUTTON_LOW(pin) SET_INPUT(pin);PULLUP(pin,HIGH);\r\n\r\n                                                     ^\r\n\r\nsketch\\ui.h:843:3: note: in expansion of macro 'UI_KEYS_INIT_BUTTON_LOW'\r\n\r\n   UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin\r\n\r\n   ^\r\n\r\nsketch\\ui.h: In function 'void uiCheckKeys(uint16_t&)':\r\n\r\nfastio.h:27: error: 'DIOUI_RESET_PIN_RPORT' was not declared in this scope\r\n\r\n #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))\r\n\r\n                                ^\r\n\r\nsketch\\fastio.h:46:23: note: in expansion of macro '_READ'\r\n\r\n #define  READ(IO)     _READ(IO)\r\n\r\n                       ^\r\n\r\nsketch\\ui.h:334:44: note: in expansion of macro 'READ'\r\n\r\n #define UI_KEYS_BUTTON_LOW(pin,action_) if(READ(pin)==0) action=action_;\r\n\r\n                                            ^\r\n\r\nsketch\\ui.h:854:2: note: in expansion of macro 'UI_KEYS_BUTTON_LOW'\r\n\r\n  UI_KEYS_BUTTON_LOW(UI_RESET_PIN,UI_ACTION_RESET);\r\n\r\n  ^\r\n\r\nfastio.h:27: error: 'DIOUI_RESET_PIN_PIN' was not declared in this scope\r\n\r\n #define  _READ(IO)     ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))\r\n\r\n                                                           ^\r\n\r\nsketch\\fastio.h:17:30: note: in definition of macro 'MASK'\r\n\r\n  #define  MASK(PIN)    (1 << PIN)\r\n\r\n                              ^\r\n\r\nsketch\\fastio.h:46:23: note: in expansion of macro '_READ'\r\n\r\n #define  READ(IO)     _READ(IO)\r\n\r\n                       ^\r\n\r\nsketch\\ui.h:334:44: note: in expansion of macro 'READ'\r\n\r\n #define UI_KEYS_BUTTON_LOW(pin,action_) if(READ(pin)==0) action=action_;\r\n\r\n                                            ^\r\n\r\nsketch\\ui.h:854:2: note: in expansion of macro 'UI_KEYS_BUTTON_LOW'\r\n\r\n  UI_KEYS_BUTTON_LOW(UI_RESET_PIN,UI_ACTION_RESET);\r\n\r\n  ^\r\n\r\nexit status 1\r\n'DIOUI_RESET_PIN_DDR' was not declared in this scope\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/comments/169756877","html_url":"https://github.com/repetier/Repetier-Firmware/issues/451#issuecomment-169756877","issue_url":"https://api.github.com/repos/repetier/Repetier-Firmware/issues/451","id":169756877,"user":{"login":"floyd871","id":7797850,"avatar_url":"https://avatars.githubusercontent.com/u/7797850?v=3","gravatar_id":"","url":"https://api.github.com/users/floyd871","html_url":"https://github.com/floyd871","followers_url":"https://api.github.com/users/floyd871/followers","following_url":"https://api.github.com/users/floyd871/following{/other_user}","gists_url":"https://api.github.com/users/floyd871/gists{/gist_id}","starred_url":"https://api.github.com/users/floyd871/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floyd871/subscriptions","organizations_url":"https://api.github.com/users/floyd871/orgs","repos_url":"https://api.github.com/users/floyd871/repos","events_url":"https://api.github.com/users/floyd871/events{/privacy}","received_events_url":"https://api.github.com/users/floyd871/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T17:58:43Z","updated_at":"2016-01-07T17:58:43Z","body":"That works!! Great, i have added in line 713:\r\n....\r\n#define UI_RESET_PIN -1\r\n.....\r\n\r\nBut after that i get another compile error.  UI_INVERT_MENU_DIRECTION seems to be double defined so I have to uncomment line 837:\r\n...\r\n//#define UI_INVERT_MENU_DIRECTION 0\r\n...\r\n"}}