Fix CAN Clean using wrong ID (#1668)

This commit is contained in:
Thad House
2019-04-27 20:24:40 -07:00
committed by Peter Johnson
parent 3b06313243
commit 4e0c10f488
2 changed files with 4 additions and 4 deletions

View File

@@ -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;
}
}