protect screen specific code with #if HAS_SCREEN

This commit is contained in:
Thomas Herrmann
2024-02-24 11:53:11 +01:00
committed by Thomas Göttgens
parent 9430a98f1d
commit d729dd952e
2 changed files with 5 additions and 0 deletions

View File

@@ -25,8 +25,10 @@ class PaxcounterModule : private concurrency::OSThread, public ProtobufModule<me
virtual meshtastic_MeshPacket *allocReply() override;
bool isActive() { return moduleConfig.paxcounter.enabled &&
!config.bluetooth.enabled && !config.network.wifi_enabled; }
#if HAS_SCREEN
virtual bool wantUIFrame() override { return isActive(); }
virtual void drawFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t y) override;
#endif
};
extern PaxcounterModule *paxcounterModule;