mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
op-1395 - automatically increment flight number after disabling log.
This commit is contained in:
parent
0b16d33b88
commit
61d26d7fd8
@ -104,6 +104,10 @@ void PIOS_DEBUGLOG_Initialize()
|
||||
*/
|
||||
void PIOS_DEBUGLOG_Enable(uint8_t enabled)
|
||||
{
|
||||
// increase the flight num as soon as logging is disabled
|
||||
if (!logging_enabled && enabled) {
|
||||
flightnum++;
|
||||
}
|
||||
logging_enabled = enabled;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user