From 93fb5354daf104c37c83bbb46b90315987bdb593 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 1 Apr 2020 14:59:27 +1100 Subject: [PATCH] AP_Beacon: pozyx: remove dead and pointless code --- libraries/AP_Beacon/AP_Beacon_Pozyx.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp b/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp index 4b3932e064..3ba884298e 100644 --- a/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp +++ b/libraries/AP_Beacon/AP_Beacon_Pozyx.cpp @@ -22,8 +22,7 @@ extern const AP_HAL::HAL& hal; // constructor AP_Beacon_Pozyx::AP_Beacon_Pozyx(AP_Beacon &frontend, AP_SerialManager &serial_manager) : - AP_Beacon_Backend(frontend), - linebuf_len(0) + AP_Beacon_Backend(frontend) { uart = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Beacon, 0); if (uart != nullptr) { @@ -41,12 +40,6 @@ bool AP_Beacon_Pozyx::healthy() // update the state of the sensor void AP_Beacon_Pozyx::update(void) { - static uint8_t counter = 0; - counter++; - if (counter > 200) { - counter = 0; - } - if (uart == nullptr) { return; }