Skip to content

Commit

Permalink
Use callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Knight committed Oct 21, 2024
1 parent 28ffe5d commit 01ecb27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/BMSLogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ namespace BMSLogic
uart_data[BMS_1].hal = &hBms1Uart;
uart_data[BMS_2].hal = &hBms2Uart;

Ant1.SetReadyCallback( CANLib::UpdateCANObjects_BMS );
//Ant2.SetReadyCallback();

Bms.SetModel(BMS_1, Ant1);
Bms.SetModel(BMS_2, Ant2);


HAL_UARTEx_ReceiveToIdle_IT(uart_data[BMS_1].hal, uart_data[BMS_1].hot, sizeof(uart_data[BMS_1].hot));
HAL_UARTEx_ReceiveToIdle_IT(uart_data[BMS_2].hal, uart_data[BMS_2].hot, sizeof(uart_data[BMS_2].hot));
Expand Down

0 comments on commit 01ecb27

Please sign in to comment.