From 48a8548eedd0b9ca39d02a48a259344090e4d357 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 5 Oct 2023 09:15:08 -0500 Subject: [PATCH] Remove experimental code --- src/mesh/RadioLibInterface.cpp | 6 ------ src/mesh/RadioLibInterface.h | 30 +----------------------------- 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/mesh/RadioLibInterface.cpp b/src/mesh/RadioLibInterface.cpp index 1b053bad45..dd81947ed0 100644 --- a/src/mesh/RadioLibInterface.cpp +++ b/src/mesh/RadioLibInterface.cpp @@ -102,7 +102,6 @@ bool RadioLibInterface::canSendImmediately() /// bluetooth comms code. If the txmit queue is empty it might return an error ErrorCode RadioLibInterface::send(meshtastic_MeshPacket *p) { - setCpuHighPower(); #ifndef DISABLE_WELCOME_UNSET if (config.lora.region != meshtastic_Config_LoRaConfig_RegionCode_UNSET) { @@ -303,11 +302,6 @@ void RadioLibInterface::completeSending() // We are done sending that packet, release it packetPool.release(p); // LOG_DEBUG("Done with send\n"); -#ifdef ARCH_NRF52 - //if (config.device.role == meshtastic_Config_DeviceConfig_Role_REPEATER) { - setCpuLowPower(); - //} -#endif } } diff --git a/src/mesh/RadioLibInterface.h b/src/mesh/RadioLibInterface.h index 4cf709b404..13baa7f7ac 100644 --- a/src/mesh/RadioLibInterface.h +++ b/src/mesh/RadioLibInterface.h @@ -3,8 +3,6 @@ #include "MeshPacketQueue.h" #include "RadioInterface.h" #include "concurrency/NotifiedWorkerThread.h" -#include "main.h" -#include "target_specific.h" #include @@ -178,30 +176,4 @@ class RadioLibInterface : public RadioInterface, protected concurrency::Notified virtual void addReceiveMetadata(meshtastic_MeshPacket *mp) = 0; virtual void setStandby() = 0; - - void setCpuLowPower() - { - // This may cause crashes as debug messages continue to flow. - // Serial.end(); - - // #ifdef PIN_SERIAL_RX1 - // Serial1.end(); - // #endif - setBluetoothEnable(false); - - #ifdef RAK4630 - #ifdef PIN_3V3_EN - digitalWrite(PIN_3V3_EN, LOW); - #endif - #ifndef USE_EINK - // RAK-12039 set pin for Air quality sensor - digitalWrite(AQ_SET_PIN, LOW); - #endif - #endif - sd_power_mode_set(NRF_POWER_MODE_LOWPWR); - } - - void setCpuHighPower() { - sd_power_mode_set(NRF_POWER_MODE_CONSTLAT); - } -}; +}; \ No newline at end of file