Skip to content

Commit fd45d35

Browse files
Deomid Ryabkovcesantabot
authored andcommitted
Move decl of pulseInLong to the C++ section [...]
[...] of Arduino.h since it's implemented in C++. CL: none PUBLISHED_FROM=2687f4f16d3a54b9979e4c1651a6cb86d8cc41be
1 parent fb2f5df commit fd45d35

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

include/Arduino.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ void detachInterrupt(uint8_t pin);
136136
void interrupts(void);
137137
void noInterrupts(void);
138138

139-
unsigned long pulseInLong(uint8_t pin, uint8_t state,
140-
unsigned long timeout = 1000000L);
141-
142139
void setup(void);
143140
void loop(void);
144141

@@ -158,7 +155,12 @@ void loop(void);
158155
} // extern "C"
159156
#endif
160157

161-
#ifdef TODO
158+
#ifdef __cplusplus
159+
unsigned long pulseInLong(uint8_t pin, uint8_t state,
160+
unsigned long timeout = 1000000L);
161+
#endif
162+
163+
#if 0 /* TODO */
162164

163165
#ifdef __cplusplus
164166

0 commit comments

Comments
 (0)