mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
yet less warnings for Wall Wextra guys
This commit is contained in:
committed by
Ivan Grokhotkov
parent
fed925149b
commit
85078f47a0
@ -71,6 +71,7 @@ void TwoWire::begin(void){
|
||||
}
|
||||
|
||||
void TwoWire::begin(uint8_t address){
|
||||
(void)address;
|
||||
// twi_setAddress(address);
|
||||
// twi_attachSlaveTxEvent(onRequestService);
|
||||
// twi_attachSlaveRxEvent(onReceiveService);
|
||||
@ -206,6 +207,8 @@ void TwoWire::flush(void){
|
||||
|
||||
void TwoWire::onReceiveService(uint8_t* inBytes, int numBytes)
|
||||
{
|
||||
(void)inBytes;
|
||||
(void)numBytes;
|
||||
// don't bother if user hasn't registered a callback
|
||||
// if(!user_onReceive){
|
||||
// return;
|
||||
@ -242,10 +245,12 @@ void TwoWire::onRequestService(void){
|
||||
}
|
||||
|
||||
void TwoWire::onReceive( void (*function)(int) ){
|
||||
(void)function;
|
||||
//user_onReceive = function;
|
||||
}
|
||||
|
||||
void TwoWire::onRequest( void (*function)(void) ){
|
||||
(void)function;
|
||||
//user_onRequest = function;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user