Skip to content

Commit 8fbe745

Browse files
authored
Update VirtButton.h
1 parent 89fcb23 commit 8fbe745

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/VirtButton.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ class VirtButton {
181181
void attach(ActionHandler handler) {
182182
#ifndef EB_NO_CALLBACK
183183
cb = handler;
184+
#else
185+
(void)handler;
184186
#endif
185187
}
186188

@@ -447,6 +449,8 @@ class VirtButton {
447449
timeout(); // todo clear tout
448450
}
449451
}
452+
#else
453+
(void)force;
450454
#endif
451455
}
452456

@@ -574,4 +578,4 @@ class VirtButton {
574578
}
575579
return bf.read(EB_CLKS_R | EB_PRS_R | EB_HLD_R | EB_STP_R | EB_REL_R);
576580
}
577-
};
581+
};

0 commit comments

Comments
 (0)