]> git.earman.xyz Git - sensor-watch.git/commitdiff
increase delay before checking VBUS_DET
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 24 Aug 2025 12:28:50 +0000 (08:28 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 24 Aug 2025 12:28:50 +0000 (08:28 -0400)
movement.c

index 0046a489208f21757dc4bdb5a5ddf6bf16909acb..ca0b0f367f5d9773e650fea6a2f676f3e85bbcd4 100644 (file)
@@ -610,7 +610,7 @@ void app_init(void) {
     // check if we are plugged into USB power.
     HAL_GPIO_VBUS_DET_in();
     HAL_GPIO_VBUS_DET_pulldown();
-    delay_ms(10);
+    delay_ms(100);
     if (HAL_GPIO_VBUS_DET_read()){
         /// if so, enable USB functionality.
         _watch_enable_usb();