mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Fix CAN Clean using wrong ID (#1668)
This commit is contained in:
committed by
Peter Johnson
parent
3b06313243
commit
4e0c10f488
@@ -104,8 +104,8 @@ void HAL_CleanCAN(HAL_CANHandle handle) {
|
||||
|
||||
for (auto&& i : data->periodicSends) {
|
||||
int32_t s = 0;
|
||||
HAL_CAN_SendMessage(i.first, nullptr, 0, HAL_CAN_SEND_PERIOD_STOP_REPEATING,
|
||||
&s);
|
||||
auto id = CreateCANId(data.get(), i.first);
|
||||
HAL_CAN_SendMessage(id, nullptr, 0, HAL_CAN_SEND_PERIOD_STOP_REPEATING, &s);
|
||||
i.second = -1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user