AP_Terrain: log_terrain_data no longer takes a DataFlash argument

This commit is contained in:
Peter Barker 2019-01-18 10:17:17 +11:00 committed by Peter Barker
parent 696c8e3fb9
commit 2292113a5b
2 changed files with 3 additions and 3 deletions

View File

@ -340,7 +340,7 @@ void AP_Terrain::update(void)
/*
log terrain data to dataflash log
*/
void AP_Terrain::log_terrain_data(DataFlash_Class &dataflash)
void AP_Terrain::log_terrain_data()
{
if (!allocate()) {
return;
@ -370,7 +370,7 @@ void AP_Terrain::log_terrain_data(DataFlash_Class &dataflash)
pending : pending,
loaded : loaded
};
dataflash.WriteBlock(&pkt, sizeof(pkt));
DataFlash_Class::instance()->WriteBlock(&pkt, sizeof(pkt));
}
/*

View File

@ -169,7 +169,7 @@ public:
/*
log terrain status to DataFlash
*/
void log_terrain_data(DataFlash_Class &dataflash);
void log_terrain_data();
/*
get some statistics for TERRAIN_REPORT