Refactor OSThread consumers to use disable()

This commit is contained in:
Ben Meadors
2022-12-29 16:26:25 -06:00
parent a8f93d5f47
commit 38a1315599
9 changed files with 14 additions and 25 deletions

View File

@@ -9,8 +9,7 @@ void RotaryEncoderInterruptImpl1::init()
{
if (!moduleConfig.canned_message.rotary1_enabled) {
// Input device is disabled.
setInterval(INT32_MAX);
enabled = false;
disable();
return;
}