Skip to content

Commit

Permalink
compacted in to single call to catch all _profile parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MrD-RC committed Nov 16, 2024
1 parent 6dcba81 commit 0297373
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tabs/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0297373

Please sign in to comment.