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:
parent
d7ca884007
commit
22bab5f09b
@ -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) {
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user