now charges on usb while on burst mode

This commit is contained in:
2025-11-25 21:51:13 -07:00
parent af50698084
commit cb2d1168ca
2 changed files with 19 additions and 1 deletions
+10 -1
View File
@@ -4,7 +4,9 @@ menu "PrincessPiTracker Config"
default 10230 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 10240
10230 for max delay with 10ms random
200 for deep sleep burst mode
config ADVERTISEMENT_INTERVAL_JITTER_MS config ADVERTISEMENT_INTERVAL_JITTER_MS
int "Max Jitter to add to Advertisement Interval in milliseconds" int "Max Jitter to add to Advertisement Interval in milliseconds"
@@ -57,4 +59,11 @@ menu "PrincessPiTracker Config"
depends on DEEP_SLEEP_BURST_MODE depends on DEEP_SLEEP_BURST_MODE
help help
Int number of seconds (s) to deep sleep between advertisement cycles min 0 max 86400 (24 hours) Int number of seconds (s) to deep sleep between advertisement cycles min 0 max 86400 (24 hours)
config STARTUP_DELAY_MS
int "Startup Delay in milliseconds"
default 1000
range 0 60000
help
Int number of milliseconds (ms) to delay startup to allow peripherals to initialize min 0 max 60000
endmenu endmenu
+9
View File
@@ -217,6 +217,15 @@ static void deep_sleep_wait_to_sleep() {
#endif #endif
void app_main() { void app_main() {
// delay to make shit to actually fookin work holy shit fuck you asshole bitch
// i spit on you
// i spit on your mom
// if your mom is dead i spit on her grave
// shame
// shame
// anus
vTaskDelay(pdMS_TO_TICKS(CONFIG_STARTUP_DELAY_MS));
// validate eid_string length // validate eid_string length
const size_t length = strlen(eid_string); const size_t length = strlen(eid_string);
if (length == 0) { if (length == 0) {