We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ca884 commit 22bab5fCopy full SHA for 22bab5f
libraries/Wire/Wire.cpp
@@ -212,7 +212,7 @@ void TwoWire::flush(void){
212
txBufferLength = 0;
213
}
214
215
-void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
+void TwoWire::onReceiveService(uint8_t* inBytes, size_t numBytes)
216
{
217
// don't bother if user hasn't registered a callback
218
if (!user_onReceive) {
libraries/Wire/Wire.h
@@ -47,7 +47,7 @@ class TwoWire : public Stream
47
static void (*user_onRequest)(void);
48
static void (*user_onReceive)(int);
49
static void onRequestService(void);
50
- static void onReceiveService(uint8_t*, int);
+ static void onReceiveService(uint8_t*, size_t);
51
public:
52
TwoWire();
53
void begin(int sda, int scl);
0 commit comments