mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: remove unused wait_for_yes function
This commit is contained in:
parent
e6519330f4
commit
0fa6fdf407
|
@ -1068,24 +1068,6 @@ print_blanks(int16_t num)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool
|
|
||||||
wait_for_yes()
|
|
||||||
{
|
|
||||||
int c;
|
|
||||||
while (cliSerial->read() != -1); /* flush */
|
|
||||||
cliSerial->printf_P(PSTR("Y to save\n"));
|
|
||||||
|
|
||||||
do {
|
|
||||||
c = cliSerial->read();
|
|
||||||
} while (-1 == c);
|
|
||||||
|
|
||||||
if (('y' == c) || ('Y' == c))
|
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_divider(void)
|
print_divider(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue