mirror of https://github.com/ArduPilot/ardupilot
AP_Beacon: pozyx: remove dead and pointless code
This commit is contained in:
parent
a76d0e3002
commit
93fb5354da
|
@ -22,8 +22,7 @@ extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
AP_Beacon_Pozyx::AP_Beacon_Pozyx(AP_Beacon &frontend, AP_SerialManager &serial_manager) :
|
AP_Beacon_Pozyx::AP_Beacon_Pozyx(AP_Beacon &frontend, AP_SerialManager &serial_manager) :
|
||||||
AP_Beacon_Backend(frontend),
|
AP_Beacon_Backend(frontend)
|
||||||
linebuf_len(0)
|
|
||||||
{
|
{
|
||||||
uart = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Beacon, 0);
|
uart = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Beacon, 0);
|
||||||
if (uart != nullptr) {
|
if (uart != nullptr) {
|
||||||
|
@ -41,12 +40,6 @@ bool AP_Beacon_Pozyx::healthy()
|
||||||
// update the state of the sensor
|
// update the state of the sensor
|
||||||
void AP_Beacon_Pozyx::update(void)
|
void AP_Beacon_Pozyx::update(void)
|
||||||
{
|
{
|
||||||
static uint8_t counter = 0;
|
|
||||||
counter++;
|
|
||||||
if (counter > 200) {
|
|
||||||
counter = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (uart == nullptr) {
|
if (uart == nullptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue