]> git.earman.xyz Git - sensor-watch.git/commitdiff
add delay before sampling VBUS_DET
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 27 Jul 2025 15:30:49 +0000 (11:30 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 27 Jul 2025 15:30:49 +0000 (11:30 -0400)
movement.c

index 8e2c5031f5f9dab9681cee6519093348e6db7f03..b3a59e83ab65ca4bbafadcfe5d48eeeb3ca6f520 100644 (file)
@@ -609,6 +609,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);
     if (HAL_GPIO_VBUS_DET_read()){
         /// if so, enable USB functionality.
         _watch_enable_usb();