You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino: 1.8.15 (Mac OS X), TD: 1.54, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void ( SerialMenuEntry::actionCallback)()' [-Wreorder]
void (actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:55:52: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive] { x = menu.getNumber<uint16_t>("Input x = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char) [with T = short unsigned int]'
inline T getNumber(const char * const message = nullptr)
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:61:49: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive] { f = menu.getNumber("Input f = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char) [with T = float]'
inline T getNumber(const char * const message = nullptr)
^
demo1: In function 'void setup()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:89:35: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.load(mainMenu, mainMenuSize);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:320:17: note: in call to 'void SerialMenu::load(const SerialMenuEntry*, uint8_t)'
inline void load(const SerialMenuEntry* array, uint8_t arraySize)
^
demo1: In function 'void loop()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:94:15: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.run(100);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:440:10: note: in call to 'bool SerialMenu::run(uint16_t)'
bool run(const uint16_t loopDelayMs)
^
In file included from /Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.cpp:8:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void ( SerialMenuEntry::actionCallback)()' [-Wreorder]
void (*actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenu::SerialMenu()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:278:7: error: 'Serial' was not declared in this scope
Serial.begin(9600);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'void SerialMenu::show() const':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:357:11: error: 'Serial' was not declared in this scope
Serial.println(menu[i].getMenu());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'char SerialMenu::getChar()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:366:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:367:14: error: 'Serial' was not declared in this scope
return Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'T SerialMenu::getNumber(const char)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:381:9: error: 'Serial' was not declared in this scope
Serial.print(message);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:386:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:387:11: error: 'Serial' was not declared in this scope
c = Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'bool SerialMenu::run(uint16_t)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:442:39: error: 'Serial' was not declared in this scope
const bool userInputAvailable = Serial.available();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:453:14: error: in argument to unary !
if (!userInputAvailable)
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:480:12: error: in argument to unary !
if (!userInputAvailable)
^
Error compiling for board Teensy 4.1.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered:
Arduino: 1.8.15 (Mac OS X), TD: 1.54, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void ( SerialMenuEntry::actionCallback)()' [-Wreorder]
void (actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:55:52: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
{ x = menu.getNumber<uint16_t>("Input x = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char) [with T = short unsigned int]'
inline T getNumber(const char * const message = nullptr)
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:61:49: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
{ f = menu.getNumber("Input f = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char) [with T = float]'
inline T getNumber(const char * const message = nullptr)
^
demo1: In function 'void setup()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:89:35: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.load(mainMenu, mainMenuSize);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:320:17: note: in call to 'void SerialMenu::load(const SerialMenuEntry*, uint8_t)'
inline void load(const SerialMenuEntry* array, uint8_t arraySize)
^
demo1: In function 'void loop()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:94:15: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.run(100);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:440:10: note: in call to 'bool SerialMenu::run(uint16_t)'
bool run(const uint16_t loopDelayMs)
^
In file included from /Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.cpp:8:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void ( SerialMenuEntry::actionCallback)()' [-Wreorder]
void (*actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenu::SerialMenu()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:278:7: error: 'Serial' was not declared in this scope
Serial.begin(9600);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'void SerialMenu::show() const':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:357:11: error: 'Serial' was not declared in this scope
Serial.println(menu[i].getMenu());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'char SerialMenu::getChar()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:366:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:367:14: error: 'Serial' was not declared in this scope
return Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'T SerialMenu::getNumber(const char)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:381:9: error: 'Serial' was not declared in this scope
Serial.print(message);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:386:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:387:11: error: 'Serial' was not declared in this scope
c = Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'bool SerialMenu::run(uint16_t)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:442:39: error: 'Serial' was not declared in this scope
const bool userInputAvailable = Serial.available();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:453:14: error: in argument to unary !
if (!userInputAvailable)
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:480:12: error: in argument to unary !
if (!userInputAvailable)
^
Error compiling for board Teensy 4.1.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
The text was updated successfully, but these errors were encountered: