mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-26 18:48:30 -04:00
AP_Terrain: log_terrain_data no longer takes a DataFlash argument
This commit is contained in:
parent
696c8e3fb9
commit
2292113a5b
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user