From 00e2d2d587c57709161158597dc915af159294f7 Mon Sep 17 00:00:00 2001 From: Adam PIppin Date: Tue, 13 Jul 2021 22:45:03 -0700 Subject: [PATCH] Remove debugging delay(); decrease deep sleep delay --- watchos2/Module_Power.h | 2 +- watchos2/Task_Battery.cpp | 1 - watchos2/__vm/Compile.vmps.xml | 2 +- watchos2/__vm/Upload.vmps.xml | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/watchos2/Module_Power.h b/watchos2/Module_Power.h index 5e0e3ab..ada07af 100644 --- a/watchos2/Module_Power.h +++ b/watchos2/Module_Power.h @@ -8,7 +8,7 @@ #include "EventListener.h" #define MODULE_POWER_INTERACTIVE_LIGHT_SLEEP_DELAY_MS 200 -#define MODULE_POWER_INTERACTIVE_DEEP_SLEEP_DELAY_MS 3000 +#define MODULE_POWER_INTERACTIVE_DEEP_SLEEP_DELAY_MS 500 #define MODULE_POWER_NONINTERACTIVE_LIGHT_SLEEP_DELAY_MS 200 #define MODULE_POWER_NONINTERACTIVE_DEEP_SLEEP_DELAY_MS 500 diff --git a/watchos2/Task_Battery.cpp b/watchos2/Task_Battery.cpp index 519daf4..1fbe598 100644 --- a/watchos2/Task_Battery.cpp +++ b/watchos2/Task_Battery.cpp @@ -39,7 +39,6 @@ public: } void draw(kernel_handle_t handle) { - delay(100); voltage = getBatteryVoltage(); // Main body ui->fillRectangle(0, 0, 20, 10); diff --git a/watchos2/__vm/Compile.vmps.xml b/watchos2/__vm/Compile.vmps.xml index e444da3..61f4917 100644 --- a/watchos2/__vm/Compile.vmps.xml +++ b/watchos2/__vm/Compile.vmps.xml @@ -2,7 +2,7 @@ - + diff --git a/watchos2/__vm/Upload.vmps.xml b/watchos2/__vm/Upload.vmps.xml index e444da3..61f4917 100644 --- a/watchos2/__vm/Upload.vmps.xml +++ b/watchos2/__vm/Upload.vmps.xml @@ -2,7 +2,7 @@ - +