mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-13 07:01:18 +10:00
a lot of thread housekeeping. Switch them off when not needed / disabled.
This commit is contained in:
@@ -9,6 +9,8 @@ void RotaryEncoderInterruptImpl1::init()
|
||||
{
|
||||
if (!moduleConfig.canned_message.rotary1_enabled) {
|
||||
// Input device is disabled.
|
||||
setInterval(INT32_MAX);
|
||||
enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user