ropg / M5Core2

M5Core2 Arduino Library
MIT License
7 stars 1 forks source link

Convenience issue #69

Open vkichline opened 4 years ago

vkichline commented 4 years ago

A low priority issue: I expected M5.Buttons.delHandlers() to compile, but it did not. In PlatformIO, if I Go to Definition, I see:

void M5Buttons::delHandlers(void (*fn)(Event&) /* = nullptr */,
                            Button* button     /* = nullptr */,
                            Gesture* gesture   /* = nullptr */

... which makes it look like M5.Buttons.delHandlers() should compile. However, Go to Declaration reveals: void delHandlers(void (*fn)(Event&), Button* button, Gesture* gesture);

If there's a future rev in this file, including the default nullptr initializers would be handy.