From ebfb62ae74af848da674c736aafa287142b4a6a2 Mon Sep 17 00:00:00 2001 From: YangXiangOvobot Date: Thu, 18 Sep 2025 17:26:43 +0800 Subject: [PATCH] BuildOdriveCode --- Firmware/Makefile | 2 +- Firmware/fibre-cpp/legacy_protocol.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/Makefile b/Firmware/Makefile index 4dc1ff903..27c38b3aa 100644 --- a/Firmware/Makefile +++ b/Firmware/Makefile @@ -33,7 +33,7 @@ all: @tup --quiet -no-environ-check @$(PY_CMD) interface_generator_stub.py --definitions odrive-interface.yaml --template ../tools/enums_template.j2 --output ../tools/odrive/enums.py @$(PY_CMD) interface_generator_stub.py --definitions odrive-interface.yaml --template ../tools/arduino_enums_template.j2 --output ../Arduino/ODriveArduino/ODriveEnums.h - @cd ../tools/ && $(PY_CMD) create_can_dbc.py +# @cd ../tools/ && $(PY_CMD) create_can_dbc.py # Copy libfibre files to odrivetool if they were built @ ! test -f "fibre-cpp/build/libfibre-linux-amd64.so" || cp fibre-cpp/build/libfibre-linux-amd64.so ../tools/odrive/pyfibre/fibre/ diff --git a/Firmware/fibre-cpp/legacy_protocol.cpp b/Firmware/fibre-cpp/legacy_protocol.cpp index 7afd13711..d74afd7a8 100644 --- a/Firmware/fibre-cpp/legacy_protocol.cpp +++ b/Firmware/fibre-cpp/legacy_protocol.cpp @@ -496,7 +496,7 @@ void LegacyProtocolPacketBased::on_read_finished(ReadResult result) { size_t actual_response_length = expected_response_length - output_buffer.size() + 2; write_le(*seq_no | 0x8000, tx_buf_); - FIBRE_LOG(D) << "send packet: " << as_hex(cbufptr_t{tx_buf_, actual_response_length}); + // FIBRE_LOG(D) << "send packet: " << as_hex(cbufptr_t{tx_buf_, actual_response_length}); tx_channel_->start_write({tx_buf_, actual_response_length}, &tx_handle_, MEMBER_CB(this, on_write_finished)); } #else