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 67c3205 commit c5b3b53Copy full SHA for c5b3b53
libraries/Wire/src/Wire.h
@@ -74,8 +74,8 @@ class TwoWire : public HardwareI2C {
74
#if SOC_I2C_SUPPORT_SLAVE
75
bool is_slave;
76
// functional pointers for user callbacks
77
- using user_onRequest_t = void (*)(void);
78
- using user_onReceive_t = void (*)(int);
+ using user_onRequest_t = std::function<void()>;
+ using user_onReceive_t = std::function<void(int)>;
79
user_onRequest_t user_onRequest;
80
user_onReceive_t user_onReceive;
81
static void onRequestService(uint8_t, void *);
0 commit comments