Skip to content

Commit 407971b

Browse files
moved debug lib and EthernetClientStream to utility folder
1 parent ebc77f9 commit 407971b

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

examples/StandardFirmataEthernet/StandardFirmataEthernet.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
#include <Wire.h>
5050
#include <Firmata.h>
5151

52-
//#define DEBUG
53-
#include "debug.h"
52+
//#define SERIAL_DEBUG
53+
#include "utility/firmataDebug.h"
5454

5555
#define I2C_WRITE B00000000
5656
#define I2C_READ B00001000
@@ -133,7 +133,7 @@ const byte mac[] = {0x90, 0xA2, 0xDA, 0x00, 0x53, 0xE5};
133133

134134
/* network */
135135

136-
#include "EthernetClientStream.h"
136+
#include "utility/EthernetClientStream.h"
137137

138138
#ifdef _YUN_CLIENT_H_
139139
YunClient client;

release.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
mkdir -p temp/Firmata
77
cp -r examples temp/Firmata
88
cp -r extras temp/Firmata
9+
cp -r utility temp/Firmata
910
cp Boards.h temp/Firmata
1011
cp Firmata.cpp temp/Firmata
1112
cp Firmata.h temp/Firmata
@@ -25,6 +26,7 @@ mkdir src
2526
mv Boards.h ./src/
2627
mv Firmata.cpp ./src/
2728
mv Firmata.h ./src/
29+
mv utility ./src/
2830
cd ..
2931
find . -name "*.DS_Store" -type f -delete
3032
zip -r Firmata.zip ./Firmata/

examples/StandardFirmataEthernet/EthernetClientStream.cpp renamed to utility/EthernetClientStream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "EthernetClientStream.h"
2121
#include <Arduino.h>
2222

23-
//#define DEBUG
24-
#include "debug.h"
23+
//#define SERIAL_DEBUG
24+
#include "firmataDebug.h"
2525

2626
#define MILLIS_RECONNECT 5000
2727

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ifndef DEBUG_H
2-
#define DEBUG_H
1+
#ifndef FIRMATA_DEBUG_H
2+
#define FIRMATA_DEBUG_H
33

4-
#ifdef DEBUG
4+
#ifdef SERIAL_DEBUG
55
#define DEBUG_BEGIN(baud) Serial.begin(baud); while(!Serial) {;}
66
#define DEBUG_PRINTLN(x) Serial.println (x)
77
#define DEBUG_PRINT(x) Serial.print (x)
@@ -11,4 +11,4 @@
1111
#define DEBUG_PRINT(x)
1212
#endif
1313

14-
#endif /* DEBUG_H */
14+
#endif /* FIRMATA_DEBUG_H */

0 commit comments

Comments
 (0)