We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011a2da commit a6115aeCopy full SHA for a6115ae
libraries/Wire/src/Wire.cpp
@@ -616,13 +616,17 @@ void TwoWire::flush()
616
617
void TwoWire::onReceive( void (*function)(int) )
618
{
619
+#if SOC_I2C_SUPPORT_SLAVE
620
user_onReceive = function;
621
+#endif
622
}
623
624
// sets function called on slave read
625
void TwoWire::onRequest( void (*function)(void) )
626
627
628
user_onRequest = function;
629
630
631
632
#if SOC_I2C_SUPPORT_SLAVE
0 commit comments