DataFlash: removed debug code for creating logs with no headers

This commit is contained in:
Andrew Tridgell 2013-12-17 12:15:41 +11:00
parent daa0a7346e
commit 599edeeafb

View File

@ -561,14 +561,12 @@ uint16_t DataFlash_Class::StartNewLog(void)
uint16_t ret; uint16_t ret;
ret = start_new_log(); ret = start_new_log();
#if 0
// write log formats so the log is self-describing // write log formats so the log is self-describing
for (uint8_t i=0; i<_num_types; i++) { for (uint8_t i=0; i<_num_types; i++) {
Log_Write_Format(&_structures[i]); Log_Write_Format(&_structures[i]);
// avoid corrupting the APM1/APM2 dataflash by writing too fast // avoid corrupting the APM1/APM2 dataflash by writing too fast
hal.scheduler->delay(10); hal.scheduler->delay(10);
} }
#endif
// and all current parameters // and all current parameters
Log_Write_Parameters(); Log_Write_Parameters();