Use init() instead of constructor.

This commit is contained in:
Balazs Kelemen committed 2022-01-13 14:15:53 +01:00
1 parent fbd5b8b721
commit b832b82ec6
5 files changed
+38 -16

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ void setupPlugins()
new RemoteHardwarePlugin();
new ReplyPlugin();
rotaryEncoderInterruptImpl1 =
new RotaryEncoderInterruptImpl1(
new RotaryEncoderInterruptImpl1();
rotaryEncoderInterruptImpl1->init(
22, 23, 21,
INPUT_EVENT_UP, INPUT_EVENT_DOWN, INPUT_EVENT_SELECT);
cannedMessagePlugin = new CannedMessagePlugin(rotaryEncoderInterruptImpl1);