Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Feb 18, 2025
1 parent 41b35f5 commit 1472ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hal/src/main/native/sim/CANAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ void HAL_ReadCANPacketTimeout(HAL_CANHandle handle, int32_t apiId,
if (i != can->receives.end()) {
// Found, check if new enough
uint64_t now = wpi::Now();
if (now - i->second.timeStamp > (static_cast<uint64_t>(timeoutMs) * 1000)) {
if (now - i->second.timeStamp >
(static_cast<uint64_t>(timeoutMs) * 1000)) {
// Timeout, return bad status
*status = HAL_CAN_TIMEOUT;
return;
Expand Down

0 comments on commit 1472ea7

Please sign in to comment.