mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-20 12:11:07 +00:00
Compare commits
2 Commits
c7dd65b7aa
...
6f5cd7d9af
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6f5cd7d9af | ||
![]() |
3b6eefa8bb |
@ -4,7 +4,7 @@ extends = arduino_base
|
|||||||
custom_esp32_kind = esp32
|
custom_esp32_kind = esp32
|
||||||
platform =
|
platform =
|
||||||
# renovate: datasource=custom.pio depName=platformio/espressif32 packageName=platformio/platform/espressif32
|
# renovate: datasource=custom.pio depName=platformio/espressif32 packageName=platformio/platform/espressif32
|
||||||
platformio/espressif32@6.11.0
|
platformio/espressif32@6.12.0
|
||||||
|
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2xx0> -<mesh/eth/> -<mesh/raspihttp>
|
${arduino_base.build_src_filter} -<platform/nrf52/> -<platform/stm32wl> -<platform/rp2xx0> -<mesh/eth/> -<mesh/raspihttp>
|
||||||
|
@ -65,8 +65,15 @@ class PositionModule : public ProtobufModule<meshtastic_Position>, private concu
|
|||||||
bool hasGPS();
|
bool hasGPS();
|
||||||
uint32_t lastSentReply = 0; // Last time we sent a position reply (used for reply throttling only)
|
uint32_t lastSentReply = 0; // Last time we sent a position reply (used for reply throttling only)
|
||||||
|
|
||||||
|
#if USERPREFS_EVENT_MODE
|
||||||
|
// In event mode we want to prevent excessive position broadcasts
|
||||||
|
// we set the minimum interval to 5m
|
||||||
|
const uint32_t minimumTimeThreshold =
|
||||||
|
max(300000, Default::getConfiguredOrDefaultMs(config.position.broadcast_smart_minimum_interval_secs, 30));
|
||||||
|
#else
|
||||||
const uint32_t minimumTimeThreshold =
|
const uint32_t minimumTimeThreshold =
|
||||||
Default::getConfiguredOrDefaultMs(config.position.broadcast_smart_minimum_interval_secs, 30);
|
Default::getConfiguredOrDefaultMs(config.position.broadcast_smart_minimum_interval_secs, 30);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SmartPosition {
|
struct SmartPosition {
|
||||||
|
Loading…
Reference in New Issue
Block a user