Fix iOS bluetooth crash: Ensure UINT32_MAX is not used (#7147)

This commit is contained in:
Ben Meadors
2025-06-26 19:23:08 -05:00
committed by GitHub
parent 50424d1035
commit 18fbc2149d
2 changed files with 25 additions and 8 deletions

View File

@@ -8,6 +8,7 @@
#define TWO_SECONDS_MS 2 * 1000
#define FIVE_SECONDS_MS 5 * 1000
#define TEN_SECONDS_MS 10 * 1000
#define MAX_INTERVAL INT32_MAX // FIXME: INT32_MAX to avoid overflow issues with Apple clients but should be UINT32_MAX
#define min_default_telemetry_interval_secs 30 * 60
#define default_gps_update_interval IF_ROUTER(ONE_DAY, 2 * 60)