mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 13:21:36 +08:00
delete module's redundant print_status()
- we can already get the running status from ModuleBase and the other misc information is already available through perf or uORB
This commit is contained in:
@@ -464,12 +464,6 @@ void PGA460::print_diagnostics(const uint8_t diagnostic_byte)
|
||||
}
|
||||
}
|
||||
|
||||
int PGA460::print_status()
|
||||
{
|
||||
PX4_INFO("Distance: %2.2f", (double)_previous_valid_report_distance);
|
||||
return PX4_OK;
|
||||
}
|
||||
|
||||
int PGA460::print_usage(const char *reason)
|
||||
{
|
||||
if (reason) {
|
||||
|
||||
@@ -267,11 +267,6 @@ public:
|
||||
*/
|
||||
void print_diagnostics(const uint8_t diagnostic_byte);
|
||||
|
||||
/**
|
||||
* Diagnostics - print some basic information about the driver.
|
||||
*/
|
||||
int print_status() override;
|
||||
|
||||
/**
|
||||
* @brief Reads the threshold registers.
|
||||
* @return Returns true if the threshold registers are set to default
|
||||
|
||||
Reference in New Issue
Block a user