diff --git a/projects/bms_carrier/src/relays.c b/projects/bms_carrier/src/relays.c index 46587b535..2fbceac1e 100644 --- a/projects/bms_carrier/src/relays.c +++ b/projects/bms_carrier/src/relays.c @@ -6,8 +6,7 @@ static RelayType relay_toggle = NO_RELAYS; static SoftTimer relays_timer; static const GpioAddress pos_relay_en = { .port = GPIO_PORT_B, .pin = 8 }; -// TODO(mitch) below address does not match schematic but is set when pos relay is on -static const GpioAddress pos_relay_sense = { .port = GPIO_PORT_B, .pin = 7 }; +static const GpioAddress pos_relay_sense = { .port = GPIO_PORT_B, .pin = 5 }; static const GpioAddress neg_relay_en = { .port = GPIO_PORT_B, .pin = 4 }; static const GpioAddress neg_relay_sense = { .port = GPIO_PORT_B, .pin = 3 }; diff --git a/projects/centre_console/src/main.c b/projects/centre_console/src/main.c index c774a474c..9c79a128b 100644 --- a/projects/centre_console/src/main.c +++ b/projects/centre_console/src/main.c @@ -75,7 +75,11 @@ void run_slow_cycle() {} int main() { tasks_init(); - log_init(); + // log_init(); + gpio_init(); +#ifdef MS_PLATFORM_ARM + USART_DeInit(USART1); +#endif gpio_it_init(); I2CSettings i2c_settings = { .speed = I2C_SPEED_STANDARD, @@ -87,9 +91,9 @@ int main() { LOG_DEBUG("Welcome to TEST! \n"); + display_init(); init_master_task(); tasks_start(); - // display_init(); LOG_DEBUG("exiting main? \n"); return 0;