Skip to content

Issue with SAMD21G18 boards #307

@pipesg

Description

@pipesg

Hi,
Firstly, many thanks for your great work developing and maintaining this useful library. I used this library in a project to control a device by sending command using LoRa. The first prototype used Feather 32u4 and worked fine, now I designed a pcb and instead Mega32u4 I have used a SAMD21G18 to increase the memory available for the application. When I compiled the application using Feather M0 board I got this warning during compilation

invalid conversion from 'const Menu::panel*' to 'Menu::panel*' [-fpermissive]

I tried again using Feather 32u4 and it compile fine.
I also tried to compile your example SSD1306Ascii-Button_Navigation, in which I based my application, with Feather M0 and MKRZERO boards and I got the same warning, this is the full output when compiling:

Button_Navigation:152:`` error: invalid conversion from 'const Menu::panel*' to 'Menu::panel*' [-fpermissive]
panelsList pList(panels, nodes, 1); //a list of panels and nodes
In file included from D:\GPS_Logger_new\Arduino\libraries\ArduinoMenu_library\src/menuIo.h:178:0,
from D:\GPS_Logger_new\Arduino\libraries\ArduinoMenu_library\src/menuDefs.h:62,
from D:\GPS_Logger_new\Arduino\libraries\ArduinoMenu_library\src/menu.h:15,
from D:\GPS_Logger_new\Arduino\libraries\ArduinoMenu_library\examples\SSD1306Ascii\Button_Navigation\Button_Navigation.ino:25:
D:\GPS_Logger_new\Arduino\libraries\ArduinoMenu_library\src/nav.h:22:16: note: initializing argument 1 of 'Menu::panelsList::panelsList(Menu::panel*, Menu::navNode**, Menu::idx_t)'
inline panelsList(constMEM panel p[],navNode* nodes[],idx_t sz):panels(p),nodes(nodes),sz(sz) {
exit status 1
invalid conversion from 'const Menu::panel*' to 'Menu::panel*' [-fpermissive]

Any help to fix this error will be very welcome.
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions