1
0
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:
Alessio Morale 2014-07-09 08:39:32 +02:00
parent 0b16d33b88
commit 61d26d7fd8

View File

@ -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;
}