mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
DataFlash: avoid declarations of SITL-only functions
This commit is contained in:
parent
fd0aa3c659
commit
404e395880
@ -314,21 +314,6 @@ void DataFlash_Class::validate_structures(const struct LogStructure *logstructur
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void DataFlash_Class::dump_structure_field(const struct LogStructure *logstructure, const char *label, const uint8_t fieldnum)
|
||||
{
|
||||
}
|
||||
|
||||
void DataFlash_Class::dump_structures(const struct LogStructure *logstructures, const uint8_t num_types)
|
||||
{
|
||||
}
|
||||
|
||||
void DataFlash_Class::validate_structures(const struct LogStructure *logstructures, const uint8_t num_types)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
|
||||
const struct LogStructure *DataFlash_Class::structure(uint16_t num) const
|
||||
|
@ -319,6 +319,7 @@ private:
|
||||
private:
|
||||
static DataFlash_Class *_instance;
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
bool validate_structure(const struct LogStructure *logstructure, int16_t offset);
|
||||
void validate_structures(const struct LogStructure *logstructures, const uint8_t num_types);
|
||||
void dump_structure_field(const struct LogStructure *logstructure, const char *label, const uint8_t fieldnum);
|
||||
@ -331,7 +332,6 @@ private:
|
||||
const char *fmt) const;
|
||||
const char* unit_name(const uint8_t unit_id);
|
||||
double multiplier_name(const uint8_t multiplier_id);
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
bool seen_ids[256] = { };
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user