1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 16:25:19 +03:00

Update to include battery_profile and mixer_profile

This commit is contained in:
Mr D - RC 2024-11-16 17:50:00 +00:00
parent a3d26de5b7
commit 6dcba817c6

View file

@ -122,7 +122,9 @@ TABS.cli.initialize = function (callback) {
new Promise((resolve) => {
timeout.add('CLI_send_slowly', () => {
let processingDelay = TABS.cli.lineDelayMs;
if (line.toLowerCase().startsWith('control_profile')) {
if (line.toLowerCase().startsWith('control_profile') ||
line.toLowerCase().startsWith('battery_profile') ||
line.toLowerCase().startsWith('mixer_profile')) {
processingDelay = TABS.cli.profileSwitchDelayMs;
}
const isLastCommand = outputArray.length === index + 1;