Merge pull request #5672 from goodprogrammist/bugfix/clearTask-OLD_TaskDeviceID-overflow

[Settings] Fix clearTask() overwriting pins of other tasks
This commit is contained in:
TD-er authored and GitHub committed 2026-10-24 21:14:14 +02:00
commit ebaf41e7fd
1 file changed
-1
@@ -793,7 +793,6 @@ void SettingsStruct_tmpl<N_TASKS>::clearTask(taskIndex_t task) {
TaskDeviceSendData[i][task] = false; TaskDeviceSendData[i][task] = false;
} }
TaskDeviceNumber[task] = 0u; //.setInvalid(); TaskDeviceNumber[task] = 0u; //.setInvalid();
OLD_TaskDeviceID[task] = 0u; // UNUSED: this can be removed
TaskDevicePin1[task] = -1; TaskDevicePin1[task] = -1;
TaskDevicePin2[task] = -1; TaskDevicePin2[task] = -1;
TaskDevicePin3[task] = -1; TaskDevicePin3[task] = -1;