Skip to content

Commit 22bab5f

Browse files
authored
Fix arg type in Wire to size_t (#5289)
1 parent d7ca884 commit 22bab5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/Wire/Wire.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void TwoWire::flush(void){
212212
txBufferLength = 0;
213213
}
214214

215-
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
215+
void TwoWire::onReceiveService(uint8_t* inBytes, size_t numBytes)
216216
{
217217
// don't bother if user hasn't registered a callback
218218
if (!user_onReceive) {

libraries/Wire/Wire.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class TwoWire : public Stream
4747
static void (*user_onRequest)(void);
4848
static void (*user_onReceive)(int);
4949
static void onRequestService(void);
50-
static void onReceiveService(uint8_t*, int);
50+
static void onReceiveService(uint8_t*, size_t);
5151
public:
5252
TwoWire();
5353
void begin(int sda, int scl);

0 commit comments

Comments
 (0)