Skip to content

Commit 2a8604a

Browse files
committed
Wire: fix write(0) overload
1 parent 9648dd3 commit 2a8604a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/Wire/Wire.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class MbedI2C : public HardwareI2C
5656
virtual void onRequest(void(*)(void));
5757

5858
virtual size_t write(uint8_t data);
59+
virtual size_t write(int data) {
60+
return write ((uint8_t)data);
61+
};
5962
virtual size_t write(const uint8_t* data, int len);
6063
using Print::write;
6164
virtual int read();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy