mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
VCP improvements to remove need for delay in serial_cli for F4 targets.
This commit is contained in:
parent
236fb5598a
commit
9c303d6669
14 changed files with 82 additions and 65 deletions
|
@ -2952,12 +2952,9 @@ static void cliDefaults(char *cmdline)
|
|||
|
||||
static void cliPrint(const char *str)
|
||||
{
|
||||
while (*str)
|
||||
bufWriterAppend(cliWriter, *str++);
|
||||
|
||||
#ifdef USE_SLOW_SERIAL_CLI
|
||||
delay(1);
|
||||
#endif
|
||||
while (*str) {
|
||||
bufWriterAppend(cliWriter, *str++);
|
||||
}
|
||||
}
|
||||
|
||||
static void cliPutp(void *p, char ch)
|
||||
|
@ -2979,10 +2976,6 @@ static bool cliDumpPrintf(uint8_t dumpMask, bool equalsDefault, const char *form
|
|||
tfp_format(cliWriter, cliPutp, format, va);
|
||||
va_end(va);
|
||||
|
||||
#ifdef USE_SLOW_SERIAL_CLI
|
||||
delay(1);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2995,10 +2988,6 @@ static void cliPrintf(const char *fmt, ...)
|
|||
va_start(va, fmt);
|
||||
tfp_format(cliWriter, cliPutp, fmt, va);
|
||||
va_end(va);
|
||||
|
||||
#ifdef USE_SLOW_SERIAL_CLI
|
||||
delay(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
static void cliWrite(uint8_t ch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue