From 6e434dffa2ec3176635bd692f7488b4689f17fe0 Mon Sep 17 00:00:00 2001 From: Justin Hwang Date: Sun, 22 Sep 2024 16:16:16 -0400 Subject: [PATCH] Updated brake pressure sensor to compile with can lib release 131 --- lib/interfaces/src/MCUInterface.cpp | 2 +- platformio.ini | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/interfaces/src/MCUInterface.cpp b/lib/interfaces/src/MCUInterface.cpp index dabb3bc37..6ae0850f9 100644 --- a/lib/interfaces/src/MCUInterface.cpp +++ b/lib/interfaces/src/MCUInterface.cpp @@ -185,7 +185,7 @@ void MCUInterface::update_mcu_status_CAN_pedals(const PedalsSystemData_s &pedals void MCUInterface::update_brake_pressure_CAN() { BRAKE_PRESSURE_SENSOR_t brake_sensor_msg; - brake_sensor_msg.brake_sensor_analog_read = analogRead(pins_.pin_brake_pressure_sensor_read); + brake_sensor_msg.brake_sensor_analog_read_ro = analogRead(pins_.pin_brake_pressure_sensor_read); CAN_message_t msg; diff --git a/platformio.ini b/platformio.ini index 7ff412f6f..e63c08794 100644 --- a/platformio.ini +++ b/platformio.ini @@ -58,7 +58,7 @@ lib_deps = https://github.com/tonton81/FlexCAN_T4 https://github.com/ssilverman/QNEthernet#v0.26.0 https://github.com/RCMast3r/hytech_can#testing_new_inv_ids - https://github.com/hytech-racing/HT_CAN/releases/download/127/can_lib.tar.gz + https://github.com/hytech-racing/HT_CAN/releases/download/132/can_lib.tar.gz [env:test_can_on_teensy] lib_ignore = @@ -81,7 +81,7 @@ lib_deps = https://github.com/hytech-racing/shared_firmware_interfaces.git#feature/thermistor-template https://github.com/hytech-racing/shared_firmware_systems.git#af96a63 https://github.com/RCMast3r/spi_libs#2214fee - https://github.com/hytech-racing/HT_CAN/releases/download/127/can_lib.tar.gz + https://github.com/hytech-racing/HT_CAN/releases/download/131/can_lib.tar.gz git+ssh://git@github.com/hytech-racing/CASE_lib.git#v49