From 0297373441809fc0e7690095b9485b2b0ed4c300 Mon Sep 17 00:00:00 2001 From: Mr D - RC Date: Sat, 16 Nov 2024 17:57:57 +0000 Subject: [PATCH] compacted in to single call to catch all `_profile` parameters --- tabs/cli.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tabs/cli.js b/tabs/cli.js index d5fab1f2a..4bdf95e6c 100644 --- a/tabs/cli.js +++ b/tabs/cli.js @@ -122,9 +122,7 @@ TABS.cli.initialize = function (callback) { new Promise((resolve) => { timeout.add('CLI_send_slowly', () => { let processingDelay = TABS.cli.lineDelayMs; - if (line.toLowerCase().startsWith('control_profile') || - line.toLowerCase().startsWith('battery_profile') || - line.toLowerCase().startsWith('mixer_profile')) { + if (line.toLowerCase().includes('_profile')) { processingDelay = TABS.cli.profileSwitchDelayMs; } const isLastCommand = outputArray.length === index + 1;