Skip to content

Commit

Permalink
Construct StoreForwardModule for Portduino as well (#4903)
Browse files Browse the repository at this point in the history
* Construct StoreForwardModule for Portduino as well

* Remove duplicate variables
  • Loading branch information
GUVWAF authored Sep 29, 2024
1 parent d73cbf1 commit 3492c9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/modules/Modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,15 @@ void setupModules()
#if defined(USE_SX1280) && !MESHTASTIC_EXCLUDE_AUDIO
audioModule = new AudioModule();
#endif
#if !MESHTASTIC_EXCLUDE_STOREFORWARD
storeForwardModule = new StoreForwardModule();
#endif
#if !MESHTASTIC_EXCLUDE_PAXCOUNTER
paxcounterModule = new PaxcounterModule();
#endif
#endif
#if defined(ARCH_ESP32) || defined(ARCH_PORTDUINO)
#if !MESHTASTIC_EXCLUDE_STOREFORWARD
storeForwardModule = new StoreForwardModule();
#endif
#endif
#if defined(ARCH_ESP32) || defined(ARCH_NRF52) || defined(ARCH_RP2040)
#if !MESHTASTIC_EXCLUDE_EXTERNALNOTIFICATION
externalNotificationModule = new ExternalNotificationModule();
Expand Down
3 changes: 0 additions & 3 deletions src/modules/StoreForwardModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@

StoreForwardModule *storeForwardModule;

uint32_t lastHeartbeat = 0;
uint32_t heartbeatInterval = 60; // Default to 60 seconds, adjust as needed

int32_t StoreForwardModule::runOnce()
{
#if defined(ARCH_ESP32) || defined(ARCH_PORTDUINO)
Expand Down

0 comments on commit 3492c9a

Please sign in to comment.