Unable to compile repetier firmware in arduino

This was working just a few days ago, but now whenever I try to compile and upload my configuration of repetier firmware I get the following error:

Arduino: 1.6.11 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch\ui.cpp: In member function 'void UIDisplay::adjustMenuPos()':

ui.cpp:2016: error: expected primary-expression before 'const'

     uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));

                                         ^

ui.cpp:2016: error: expected ')' before 'const'

sketch\ui.cpp: In member function 'void UIDisplay::nextPreviousAction(int8_t)':

ui.cpp:2083: error: expected primary-expression before 'const'

     uint8_t mtype = HAL::readFlashByte((const prog_char*)&(men->menuType));

                                         ^

ui.cpp:2083: error: expected ')' before 'const'

ui.cpp:2087: 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: error: expected ')' before 'const'

exit status 1
expected primary-expression before 'const'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Any help would be appreciated!!!

Sign In or Register to comment.