1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Fix arg type in Wire to size_t (#5289)

This commit is contained in:
Develo 2018-10-28 20:53:21 -03:00 committed by GitHub
parent d7ca884007
commit 22bab5f09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ void TwoWire::flush(void){
txBufferLength = 0; txBufferLength = 0;
} }
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes) void TwoWire::onReceiveService(uint8_t* inBytes, size_t numBytes)
{ {
// don't bother if user hasn't registered a callback // don't bother if user hasn't registered a callback
if (!user_onReceive) { if (!user_onReceive) {

View File

@ -47,7 +47,7 @@ class TwoWire : public Stream
static void (*user_onRequest)(void); static void (*user_onRequest)(void);
static void (*user_onReceive)(int); static void (*user_onReceive)(int);
static void onRequestService(void); static void onRequestService(void);
static void onReceiveService(uint8_t*, int); static void onReceiveService(uint8_t*, size_t);
public: public:
TwoWire(); TwoWire();
void begin(int sda, int scl); void begin(int sda, int scl);