we we arenow on to testing :chameleon:

This commit is contained in:
2025-11-25 17:20:48 -07:00
parent 52a75c35a3
commit 80ca57758a
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
idf_component_register(SRCS "main.c" idf_component_register(SRCS "PrincessPiTracker.c"
INCLUDE_DIRS "." INCLUDE_DIRS "."
PRIV_REQUIRES nvs_flash bt ulp PRIV_REQUIRES nvs_flash bt
) )
+2 -2
View File
@@ -1,7 +1,7 @@
menu "GoogleFindMyTools Config" menu "PrincessPiTracker Config"
config ADVERTISEMENT_INTERVAL config ADVERTISEMENT_INTERVAL
int "Interval between advertisements in milliseconds" int "Interval between advertisements in milliseconds"
default 10240 default 10230
range 12 10240 range 12 10240
help help
Int number of milliseconds (ms) in between advertisements min 12 max 1240 Int number of milliseconds (ms) in between advertisements min 12 max 1240
+3 -1
View File
@@ -9,9 +9,10 @@
#if CONFIG_DEEP_SLEEP_BURST_MODE #if CONFIG_DEEP_SLEEP_BURST_MODE
#include "soc/soc_caps.h" // malloc and shit if lmao #include "soc/soc_caps.h" // malloc and shit if lmao
#include "esp_sleep.h" // For deep sleep functions #include "esp_sleep.h" // For deep sleep functions
#include "freertos/FreeRTOS.h" #include "freertos/FreeRTOS.h" // freertosbullshit
#include "freertos/task.h" #include "freertos/task.h"
// calculate da burst delay and burst delay microseconds
#define DEEP_SLEEP_BURST_DELAY (CONFIG_DEEP_SLEEP_BURST_COUNT * CONFIG_ADVERTISEMENT_INTERVAL) #define DEEP_SLEEP_BURST_DELAY (CONFIG_DEEP_SLEEP_BURST_COUNT * CONFIG_ADVERTISEMENT_INTERVAL)
#define DEEP_SLEEP_BURST_DELAY_MICROS (CONFIG_DEEP_SLEEP_DURATION_S * 1000000) #define DEEP_SLEEP_BURST_DELAY_MICROS (CONFIG_DEEP_SLEEP_DURATION_S * 1000000)
#endif #endif
@@ -22,6 +23,7 @@
// handle da minutes config and round to da nearest integer // handle da minutes config and round to da nearest integer
#define ADVERTISE_INTERVAL_MIN ROUND((CONFIG_ADVERTISEMENT_INTERVAL / 0.625)) #define ADVERTISE_INTERVAL_MIN ROUND((CONFIG_ADVERTISEMENT_INTERVAL / 0.625))
#define ADVERTISE_INTERVAL_MAX (ADVERTISE_INTERVAL_MIN + ROUND((CONFIG_ADVERTISEMENT_INTERVAL_JITTER_MS / 0.625))) #define ADVERTISE_INTERVAL_MAX (ADVERTISE_INTERVAL_MIN + ROUND((CONFIG_ADVERTISEMENT_INTERVAL_JITTER_MS / 0.625)))
// repoting tag // repoting tag
#define TAG CONFIG_TAG #define TAG CONFIG_TAG