we we arenow on to testing :chameleon:
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
idf_component_register(SRCS "PrincessPiTracker.c"
|
||||
INCLUDE_DIRS "."
|
||||
PRIV_REQUIRES nvs_flash bt ulp
|
||||
PRIV_REQUIRES nvs_flash bt
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
menu "GoogleFindMyTools Config"
|
||||
menu "PrincessPiTracker Config"
|
||||
config ADVERTISEMENT_INTERVAL
|
||||
int "Interval between advertisements in milliseconds"
|
||||
default 10240
|
||||
default 10230
|
||||
range 12 10240
|
||||
help
|
||||
Int number of milliseconds (ms) in between advertisements min 12 max 1240
|
||||
|
||||
@@ -9,9 +9,10 @@
|
||||
#if CONFIG_DEEP_SLEEP_BURST_MODE
|
||||
#include "soc/soc_caps.h" // malloc and shit if lmao
|
||||
#include "esp_sleep.h" // For deep sleep functions
|
||||
#include "freertos/FreeRTOS.h"
|
||||
#include "freertos/FreeRTOS.h" // freertosbullshit
|
||||
#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_MICROS (CONFIG_DEEP_SLEEP_DURATION_S * 1000000)
|
||||
#endif
|
||||
@@ -22,6 +23,7 @@
|
||||
// handle da minutes config and round to da nearest integer
|
||||
#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)))
|
||||
|
||||
// repoting tag
|
||||
#define TAG CONFIG_TAG
|
||||
|
||||
Reference in New Issue
Block a user