only acquire screen when paxcounter is active, i.e. enabled and wifi and ble are both off

This commit is contained in:
Thomas Herrmann
2024-02-23 22:11:53 +01:00
committed by Thomas Göttgens
parent bbc76f884e
commit 93ba60da69
2 changed files with 4 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ meshtastic_MeshPacket *PaxcounterModule::allocReply()
int32_t PaxcounterModule::runOnce()
{
if (moduleConfig.paxcounter.enabled && !config.bluetooth.enabled && !config.network.wifi_enabled) {
if (isActive()) {
if (firstTime) {
firstTime = false;
LOG_DEBUG(