Skip to content

Commit a142327

Browse files
committed
Fix build issue with arm none eabi gcc v9.2.1
Firmata/Firmata.h:131:17: error: friend declaration of 'void encodeByteStream(size_t, uint8_t*, size_t) const' specifies default arguments and isn't a definition [-fpermissive] 131 | friend void FirmataMarshaller::encodeByteStream (size_t bytec, uint8_t * bytev, size_t max_bytes = 0) const; | ^~~~~~~~~~~~~~~~~ Ref: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2000/n1263.html Fixes #437 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 1ccb2c0 commit a142327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmata.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class FirmataClass
128128

129129
/* private methods ------------------------------ */
130130
void strobeBlinkPin(byte pin, int count, int onInterval, int offInterval);
131-
friend void FirmataMarshaller::encodeByteStream (size_t bytec, uint8_t * bytev, size_t max_bytes = 0) const;
131+
friend void FirmataMarshaller::encodeByteStream (size_t bytec, uint8_t * bytev, size_t max_bytes) const;
132132

133133
/* callback functions */
134134
static callbackFunction currentAnalogCallback;

0 commit comments

Comments
 (0)