mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-18 07:47:32 +00:00
protect screen specific code with #if HAS_SCREEN
This commit is contained in:
committed by
Thomas Göttgens
parent
9430a98f1d
commit
d729dd952e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user