Skip to content

Commit 3d9d50a

Browse files
explain why some functions are forward declared
1 parent 5da81d6 commit 3d9d50a

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

examples/StandardFirmata/StandardFirmata.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ byte servoCount = 0;
9191

9292
boolean isResetting = false;
9393

94+
// Forward declare a few functions to avoid compiler errors with older versions
95+
// of the Arduino IDE.
9496
void setPinModeCallback(byte, int);
9597
void reportAnalogCallback(byte analogPin, int value);
9698
void sysexCallback(byte, byte, byte*);

examples/StandardFirmataBLE/StandardFirmataBLE.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ byte servoCount = 0;
108108

109109
boolean isResetting = false;
110110

111+
// Forward declare a few functions to avoid compiler errors with older versions
112+
// of the Arduino IDE.
111113
void setPinModeCallback(byte, int);
112114
void reportAnalogCallback(byte analogPin, int value);
113115
void sysexCallback(byte, byte, byte*);

examples/StandardFirmataChipKIT/StandardFirmataChipKIT.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ byte servoCount = 0;
8888

8989
boolean isResetting = false;
9090

91+
// Forward declare a few functions to avoid compiler errors with older versions
92+
// of the Arduino IDE.
9193
void setPinModeCallback(byte, int);
9294
void reportAnalogCallback(byte analogPin, int value);
9395
void sysexCallback(byte, byte, byte*);

examples/StandardFirmataEthernet/StandardFirmataEthernet.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ byte servoCount = 0;
161161

162162
boolean isResetting = false;
163163

164+
// Forward declare a few functions to avoid compiler errors with older versions
165+
// of the Arduino IDE.
164166
void setPinModeCallback(byte, int);
165167
void reportAnalogCallback(byte analogPin, int value);
166168
void sysexCallback(byte, byte, byte*);

examples/StandardFirmataPlus/StandardFirmataPlus.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ byte servoCount = 0;
116116

117117
boolean isResetting = false;
118118

119+
// Forward declare a few functions to avoid compiler errors with older versions
120+
// of the Arduino IDE.
119121
void setPinModeCallback(byte, int);
120122
void reportAnalogCallback(byte analogPin, int value);
121123
void sysexCallback(byte, byte, byte*);

examples/StandardFirmataWiFi/StandardFirmataWiFi.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ byte servoCount = 0;
174174

175175
boolean isResetting = false;
176176

177+
// Forward declare a few functions to avoid compiler errors with older versions
178+
// of the Arduino IDE.
177179
void setPinModeCallback(byte, int);
178180
void reportAnalogCallback(byte analogPin, int value);
179181
void sysexCallback(byte, byte, byte*);

0 commit comments

Comments
 (0)