Fix native CAN speed changing using new library, with new CanBattery API (currently only used by BMW PHEV).

This commit is contained in:
Jonny 2025-09-08 17:39:03 +01:00
parent 577a353285
commit db9537a34b
6 changed files with 64 additions and 28 deletions

View file

@ -5,8 +5,8 @@ void transmit_can_frame_to_interface(const CAN_frame* tx_frame, int interface) {
void register_can_receiver(CanReceiver* receiver, CAN_Interface interface, CAN_Speed speed) {}
CAN_Speed change_can_speed(CAN_Interface interface, CAN_Speed speed) {
return CAN_Speed::CAN_SPEED_500KBPS;
bool change_can_speed(CAN_Interface interface, CAN_Speed speed) {
return true;
}
void stop_can() {}