automatically detect temperature sensor

This commit is contained in:
Joey Castillo
2025-05-17 10:23:38 -04:00
parent 9fd174e453
commit 80cbb0fe30
6 changed files with 57 additions and 16 deletions

View File

@@ -45,6 +45,7 @@
#include "evsys.h"
#include "delay.h"
#include "movement_activity.h"
#include "thermistor_driver.h"
#include "movement_config.h"
@@ -564,6 +565,8 @@ void app_init(void) {
filesystem_init();
movement_state.has_thermistor = thermistor_driver_init();
// check if we are plugged into USB power.
HAL_GPIO_VBUS_DET_in();
HAL_GPIO_VBUS_DET_pulldown();