Skip to content

Commit 1020a3b

Browse files
authored
Disabled NodeManager's debug output when running a serial gateway (#387)
1 parent 4508de3 commit 1020a3b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,21 @@ install:
3636
jobs:
3737
include:
3838
- stage: build
39-
name: "Base Sketch"
39+
name: "Empty Sketch (NRF24 radio)"
4040
script:
4141
- eval $RUN
42-
- name: "All features ON"
42+
- name: "Empty Sketch (RFM69 radio)"
43+
script:
44+
- sed -r -i 's/(#define MY_RADIO_NRF24)/\/\/\1/' $PWD/$SKETCH
45+
- sed -r -i 's/\/\/(#define MY_RADIO_RFM69)/\1/' $PWD/$SKETCH
46+
- sed -r -i 's/\/\/(#define MY_IS_RFM69HW)/\1/' $PWD/$SKETCH
47+
- sed -r -i 's/\/\/(#define MY_RFM69_NEW_DRIVER)/\1/' $PWD/$SKETCH
48+
- eval $RUN
49+
- name: "Gateway Serial"
50+
script:
51+
- sed -r -i 's/\/\/(#define MY_GATEWAY_SERIAL)/\1/' $PWD/$SKETCH
52+
- eval $RUN
53+
- name: "Features"
4354
script:
4455
- arduino --install-library "DS3232RTC,Time"
4556
- sed -r -i s/OFF/ON/g $PWD/$SKETCH

NodeManagerLibrary.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@
263263
// include third party libraries for enabled features
264264
#ifdef MY_GATEWAY_SERIAL
265265
#define FEATURE_SLEEP OFF
266+
#define FEATURE_DEBUG OFF
266267
#endif
267268
#if FEATURE_TIME == ON
268269
#include <TimeLib.h>

0 commit comments

Comments
 (0)