Skip to content

Commit c7421eb

Browse files
committed
fixing travis build
1 parent 4f9f0d1 commit c7421eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

examples/Serial/ansiSerial/ansiSerial/ansiSerial.ino

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ www.r-site.net
3030

3131
using namespace Menu;
3232

33+
Print& operator<<(Print&o, Menu::prompt&p) {
34+
print_P(o,p.getText());
35+
return o;
36+
}
37+
3338
#ifdef ARDUINO_SAM_DUE
3439
#define LEDPIN 13
3540
#else
@@ -296,7 +301,7 @@ result idle(menuOut& o,idleEvent e) {
296301

297302
void setup() {
298303
pinMode(LEDPIN,OUTPUT);
299-
Serial.begin(115200);
304+
Serial.begin(9600);
300305
while(!Serial);
301306
Serial<<"menu 3.0 test"<<endl;Serial.flush();
302307
nav.idleTask=idle;//point a function to be used when menu is suspended

examples/Serial/ansiSerial/platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lib_dir=~/Arduino/Libraries
1515
platform = atmelavr
1616
board = nanoatmega328
1717
framework = arduino
18-
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing -DDEBUG
18+
build_flags = -Wno-comment -Wno-reorder -Wno-strict-aliasing -Wno-builtin-macro-redefined -Wno-strict-aliasing
1919

2020
;[env:teensy31]
2121
;platform = teensy

0 commit comments

Comments
 (0)