Can't compile firmware 0.91 with any LCD support for rumba

Hello guys.
 I try to setup lcd reprap discount smart controller with rumba board + repetier 0.91

This is default firmware with only 2 changes. RUmba controller & 
smartcontroller from reprapdiscount on a RAMPS or Rumba board
 

Here is file  http://s000.tinyupload.com/index.php?file_id=26617173102835241810 ;

arduino IDE can't compile firmware.


Message of issue.

ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':
ui.cpp:2016:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2016:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2016:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2016:41: error: expected ')' before 'const'
ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':
ui.cpp:2083:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2083:47: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2083:41: error: expected primary-expression before 'const'
uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));
^
ui.cpp:2083:41: error: expected ')' before 'const'
ui.cpp:2087:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
ui.cpp:2087:49: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
ui.cpp:2087:43: error: expected primary-expression before 'const'
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));// 0 = Info, 1 = Headline, 2 = submenu ref, 3 = direct action command
^
ui.cpp:2087:43: error: expected ')' before 'const'



Comments

  • Use older Arduino IDE for 0.91 or update firmware to 0.92.3 which works with the new compiler as well.
Sign In or Register to comment.